diff options
Diffstat (limited to 'tools/lto/LTOCodeGenerator.cpp')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index 7620bcb..28ede86 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -347,9 +347,6 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out, if ( this->determineTarget(errMsg) ) return true; - // mark which symbols can not be internalized - this->applyScopeRestrictions(); - Module* mergedModule = _linker.getModule(); // if options were requested, set them @@ -357,6 +354,9 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out, cl::ParseCommandLineOptions(_codegenOptions.size(), const_cast<char **>(&_codegenOptions[0])); + // mark which symbols can not be internalized + this->applyScopeRestrictions(); + // Instantiate the pass manager to organize the passes. PassManager passes; |