[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp
Jeff Cohen
jeffc at jolt-lang.org
Sat Jan 28 10:38:32 PST 2006
Changes in directory llvm/lib/Target/X86:
X86Subtarget.cpp updated: 1.17 -> 1.18
---
Log message:
Fix recognition of Intel CPUs.
---
Diffs of the changes: (+2 -0)
X86Subtarget.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Target/X86/X86Subtarget.cpp
diff -u llvm/lib/Target/X86/X86Subtarget.cpp:1.17 llvm/lib/Target/X86/X86Subtarget.cpp:1.18
--- llvm/lib/Target/X86/X86Subtarget.cpp:1.17 Sat Jan 28 12:23:48 2006
+++ llvm/lib/Target/X86/X86Subtarget.cpp Sat Jan 28 12:38:20 2006
@@ -72,6 +72,8 @@
GetCpuIDAndInfo(0x80000003, text+4, text+5, text+6, text+7);
GetCpuIDAndInfo(0x80000004, text+8, text+9, text+10, text+11);
char *t = reinterpret_cast<char *>(&text[0]);
+ while (*t == ' ')
+ t++;
if (memcmp(t, "Intel", 5) == 0) {
switch (Family) {
More information about the llvm-commits
mailing list