[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Feb 4 05:47:32 PST 2005
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.13 -> 1.14
---
Log message:
fix constant pointer outputing on 64 bit machines
---
Diffs of the changes: (+5 -0)
AsmPrinter.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.13 llvm/lib/CodeGen/AsmPrinter.cpp:1.14
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.13 Sat Jan 8 13:59:10 2005
+++ llvm/lib/CodeGen/AsmPrinter.cpp Fri Feb 4 07:47:16 2005
@@ -284,6 +284,11 @@
O << Data16bitsDirective;
break;
case Type::PointerTyID:
+ if (TD.getPointerSize() == 8) {
+ O << Data64bitsDirective;
+ break;
+ }
+ //Fall through for pointer size == int size
case Type::UIntTyID: case Type::IntTyID:
O << Data32bitsDirective;
break;
More information about the llvm-commits
mailing list