diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-09 22:18:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-09 22:18:01 +0000 |
commit | 64d5b282c92b3599c56ef987d6f6971611d716e6 (patch) | |
tree | 80e074d4ea6a874b45e88027d5203b6413ce3cd5 /tools/lto | |
parent | 787c3fd385834db61bd955dcc40fb02b77c183a9 (diff) | |
download | external_llvm-64d5b282c92b3599c56ef987d6f6971611d716e6.zip external_llvm-64d5b282c92b3599c56ef987d6f6971611d716e6.tar.gz external_llvm-64d5b282c92b3599c56ef987d6f6971611d716e6.tar.bz2 |
Apply the scope restrictions after parsing the command line options. There may be some which are used in that function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-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; |