mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Added getDefaultSubtargetFeatures method to SubtargetFeatures class which returns a correct feature string for given triple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -305,7 +305,8 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
||||
}
|
||||
|
||||
// construct LTModule, hand over ownership of module and target
|
||||
std::string FeatureStr = getFeatureString(Triple.c_str());
|
||||
const std::string FeatureStr =
|
||||
SubtargetFeatures::getDefaultSubtargetFeatures(llvm::Triple(Triple));
|
||||
_target = march->createTargetMachine(Triple, FeatureStr);
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user