diff options
author | Robert Moore <Robert.Moore@intel.com> | 2018-12-12 13:28:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 13:28:19 -0800 |
commit | 6cc9fb33c28d9d963e0581898cd1b4a032246b19 (patch) | |
tree | b2a163a98dae02d06e72fadc8259f18d053bb1a3 | |
parent | 4f65b31b1d69d5670dd4901f5f398b03c6827c56 (diff) | |
parent | ca62aa832c84308cd0648be67d718d36f807ede6 (diff) | |
download | acpica-6cc9fb33c28d9d963e0581898cd1b4a032246b19.tar.gz |
Merge pull request #434 from SchmErik/cleanup-DoExternals-flag
iASL: remove obsolete AcpiGbl_DoExternals flag
-rw-r--r-- | source/compiler/aslcodegen.c | 6 | ||||
-rw-r--r-- | source/compiler/aslcompile.c | 27 | ||||
-rw-r--r-- | source/compiler/aslglobal.h | 1 | ||||
-rw-r--r-- | source/compiler/asllength.c | 5 | ||||
-rw-r--r-- | source/compiler/aslopcodes.c | 9 | ||||
-rw-r--r-- | source/compiler/asltransform.c | 6 |
6 files changed, 14 insertions, 40 deletions
diff --git a/source/compiler/aslcodegen.c b/source/compiler/aslcodegen.c index 7b2e3e5ce..356011f06 100644 --- a/source/compiler/aslcodegen.c +++ b/source/compiler/aslcodegen.c @@ -773,12 +773,6 @@ CgWriteNode ( return; } - if ((Op->Asl.ParseOpcode == PARSEOP_EXTERNAL) && - AslGbl_DoExternals == FALSE) - { - return; - } - Op->Asl.FinalAmlLength = 0; switch (Op->Asl.AmlOpcode) diff --git a/source/compiler/aslcompile.c b/source/compiler/aslcompile.c index 4ae190763..1b8838aab 100644 --- a/source/compiler/aslcompile.c +++ b/source/compiler/aslcompile.c @@ -388,23 +388,20 @@ CmDoCompile ( /* Resolve External Declarations */ - if (AslGbl_DoExternals) - { - Event = UtBeginEvent ("Resolve all Externals"); - DbgPrint (ASL_DEBUG_OUTPUT, "\nResolve Externals\n\n"); + Event = UtBeginEvent ("Resolve all Externals"); + DbgPrint (ASL_DEBUG_OUTPUT, "\nResolve Externals\n\n"); - if (AslGbl_DoExternalsInPlace) - { - TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, - ExAmlExternalWalkBegin, NULL, NULL); - } - else - { - TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, - ExAmlExternalWalkBegin, ExAmlExternalWalkEnd, NULL); - } - UtEndEvent (Event); + if (AslGbl_DoExternalsInPlace) + { + TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD, + ExAmlExternalWalkBegin, NULL, NULL); } + else + { + TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_TWICE, + ExAmlExternalWalkBegin, ExAmlExternalWalkEnd, NULL); + } + UtEndEvent (Event); /* * Semantic analysis. This can happen only after the diff --git a/source/compiler/aslglobal.h b/source/compiler/aslglobal.h index 2c7155676..fd00da780 100644 --- a/source/compiler/aslglobal.h +++ b/source/compiler/aslglobal.h @@ -320,7 +320,6 @@ ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_AllExceptionsDisable ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_PruneParseTree, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoTypechecking, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_EnableReferenceTypechecking, FALSE); -ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoExternals, TRUE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoExternalsInPlace, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_DoAslConversion, FALSE); ASL_EXTERN BOOLEAN ASL_INIT_GLOBAL (AslGbl_OptimizeTrivialParseNodes, TRUE); diff --git a/source/compiler/asllength.c b/source/compiler/asllength.c index 696dc2424..8fef83b91 100644 --- a/source/compiler/asllength.c +++ b/source/compiler/asllength.c @@ -519,10 +519,7 @@ CgGenerateAmlLengths ( case PARSEOP_EXTERNAL: - if (AslGbl_DoExternals == TRUE) - { - CgGenerateAmlOpcodeLength (Op); - } + CgGenerateAmlOpcodeLength (Op); break; default: diff --git a/source/compiler/aslopcodes.c b/source/compiler/aslopcodes.c index 218223b83..32d04781c 100644 --- a/source/compiler/aslopcodes.c +++ b/source/compiler/aslopcodes.c @@ -927,15 +927,6 @@ OpcGenerateAmlOpcode ( AslGbl_HasIncludeFiles = TRUE; break; - case PARSEOP_EXTERNAL: - - if (AslGbl_DoExternals == FALSE) - { - Op->Asl.Child->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; - Op->Asl.Child->Asl.Next->Asl.ParseOpcode = PARSEOP_DEFAULT_ARG; - } - break; - case PARSEOP_TIMER: if (AcpiGbl_IntegerBitWidth == 32) diff --git a/source/compiler/asltransform.c b/source/compiler/asltransform.c index 324b0364d..2bf32db4b 100644 --- a/source/compiler/asltransform.c +++ b/source/compiler/asltransform.c @@ -460,11 +460,7 @@ TrTransformSubtree ( case PARSEOP_EXTERNAL: - if (AslGbl_DoExternals == TRUE) - { - ExDoExternal (Op); - } - + ExDoExternal (Op); break; case PARSEOP___METHOD__: |