llvm.org GIT mirror llvm / 3bf6acc
Match things like 'armv5tejl-unknown-linux-gnu' for PR2290 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50698 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9393
9494 unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {
9595 std::string TT = M.getTargetTriple();
96 if (TT.size() >= 4 && std::string(TT.begin(), TT.begin()+4) == "arm-")
96 if (TT.size() >= 4 && // Match arm-foo-bar, as well as things like armv5blah-*
97 (TT.substr(0, 4) == "arm-" || TT.substr(0, 4) == "armv"))
9798 return 20;
9899 // If the target triple is something non-arm, we don't match.
99100 if (!TT.empty()) return 0;