mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Apply the scope restrictions after parsing the command line options. There may be some which are used in that function.
llvm-svn: 154348
This commit is contained in:
parent
1b46e841a2
commit
34064d63d1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user