mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 22:15:25 +00:00
Match things like 'armv5tejl-unknown-linux-gnu' for PR2290
llvm-svn: 50698
This commit is contained in:
parent
d4a670284c
commit
d46c148cf8
@ -94,7 +94,8 @@ unsigned ARMTargetMachine::getJITMatchQuality() {
|
||||
|
||||
unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {
|
||||
std::string TT = M.getTargetTriple();
|
||||
if (TT.size() >= 4 && std::string(TT.begin(), TT.begin()+4) == "arm-")
|
||||
if (TT.size() >= 4 && // Match arm-foo-bar, as well as things like armv5blah-*
|
||||
(TT.substr(0, 4) == "arm-" || TT.substr(0, 4) == "armv"))
|
||||
return 20;
|
||||
// If the target triple is something non-arm, we don't match.
|
||||
if (!TT.empty()) return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user