mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Rollback changes r89516: Added two SubtargetFeatures::AddFeatures methods, which accept a comma-separated string or already parsed command line parameters as input, and some code re-factoring to use these new methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89893 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -304,17 +304,10 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
||||
break;
|
||||
}
|
||||
|
||||
// Prepare subtarget feature set for the given command line options.
|
||||
SubtargetFeatures features;
|
||||
|
||||
// Set the rest of features by default.
|
||||
// Note: Please keep this after all explict feature settings to make sure
|
||||
// defaults will not override explicitly set options.
|
||||
features.AddFeatures(
|
||||
SubtargetFeatures::getDefaultSubtargetFeatures(llvm::Triple(Triple)));
|
||||
|
||||
// construct LTModule, hand over ownership of module and target
|
||||
_target = march->createTargetMachine(Triple, features.getString());
|
||||
const std::string FeatureStr =
|
||||
SubtargetFeatures::getDefaultSubtargetFeatures(llvm::Triple(Triple));
|
||||
_target = march->createTargetMachine(Triple, FeatureStr);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user