The x86-64 target machine should be used for amd64-* target triples.

llvm-svn: 32678
This commit is contained in:
Chris Lattner 2006-12-19 19:40:09 +00:00
parent fb5e766bea
commit 68f62b58f7
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ unsigned X86_64TargetMachine::getModuleMatchQuality(const Module &M) {
TT[3] == '_' && TT[4] == '6' && TT[5] == '4' && TT[6] == '-')
return 20;
// We strongly match "amd64-*".
if (TT.size() >= 6 && TT[0] == 'a' && TT[1] == 'm' && TT[2] == 'd' &&
TT[3] == '6' && TT[4] == '4' && TT[5] == '-')
return 20;
if (M.getEndianness() == Module::LittleEndian &&
M.getPointerSize() == Module::Pointer64)
return 10; // Weak match