[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 13 22:08:30 PST 2007
Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.87 -> 1.88
---
Log message:
add a missing else. This caused globals to be printed as:
movq ___dso_handle at GOTPCREL(%rip)(%rip), %rsi
instead of:
movq ___dso_handle at GOTPCREL(%rip), %rsi
---
Diffs of the changes: (+1 -1)
X86ATTAsmPrinter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.87 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.88
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.87 Sat Jan 13 18:48:43 2007
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Sun Jan 14 00:08:14 2007
@@ -310,7 +310,7 @@
O << "@GOT";
} else if (Subtarget->isPICStyleRIPRel()) {
O << "@GOTPCREL(%rip)";
- } if (Subtarget->is64Bit() && !NotRIPRel)
+ } else if (Subtarget->is64Bit() && !NotRIPRel)
// Use rip when possible to reduce code size, except when
// index or base register are also part of the address. e.g.
// foo(%rip)(%rcx,%rax,4) is not legal
More information about the llvm-commits
mailing list