[llvm-commits] [llvm] r154348 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Bill Wendling
isanbard at gmail.com
Mon Apr 9 15:18:02 PDT 2012
Author: void
Date: Mon Apr 9 17:18:01 2012
New Revision: 154348
URL: http://llvm.org/viewvc/llvm-project?rev=154348&view=rev
Log:
Apply the scope restrictions after parsing the command line options. There may be some which are used in that function.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=154348&r1=154347&r2=154348&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Mon Apr 9 17:18:01 2012
@@ -347,9 +347,6 @@
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 @@
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;
More information about the llvm-commits
mailing list