mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Fix option parsing in the gold plugin.
This was broken when options were moved up in r191680. No test because this is specific LLVMgold.so/libLTO.so. Patch by Tom Roeder! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191829 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -264,11 +264,6 @@ bool LTOCodeGenerator::determineTarget(std::string &errMsg) {
|
||||
if (TargetMach != NULL)
|
||||
return true;
|
||||
|
||||
// if options were requested, set them
|
||||
if (!CodegenOptions.empty())
|
||||
cl::ParseCommandLineOptions(CodegenOptions.size(),
|
||||
const_cast<char **>(&CodegenOptions[0]));
|
||||
|
||||
std::string TripleStr = Linker.getModule()->getTargetTriple();
|
||||
if (TripleStr.empty())
|
||||
TripleStr = sys::getDefaultTargetTriple();
|
||||
@ -473,3 +468,10 @@ void LTOCodeGenerator::setCodeGenDebugOptions(const char *options) {
|
||||
CodegenOptions.push_back(strdup(o.first.str().c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
void LTOCodeGenerator::parseCodeGenDebugOptions() {
|
||||
// if options were requested, set them
|
||||
if (!CodegenOptions.empty())
|
||||
cl::ParseCommandLineOptions(CodegenOptions.size(),
|
||||
const_cast<char **>(&CodegenOptions[0]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user