mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user