[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Chris Lattner
sabre at nondot.org
Tue Dec 19 11:40:24 PST 2006
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.130 -> 1.131
---
Log message:
The x86-64 target machine should be used for amd64-* target triples.
---
Diffs of the changes: (+5 -0)
X86TargetMachine.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.130 llvm/lib/Target/X86/X86TargetMachine.cpp:1.131
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.130 Tue Dec 5 13:50:18 2006
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Tue Dec 19 13:40:09 2006
@@ -80,6 +80,11 @@
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
More information about the llvm-commits
mailing list