aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-02-04 13:47:16 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-02-04 13:47:16 +0000
commit571c9c314f2f02319ebf485b05dccd6d33bf87af (patch)
tree4d815e039662fcb716312b368836e0085540f518 /lib/CodeGen/AsmPrinter.cpp
parent9106ecae681de42923de816115cc968d985e6b8d (diff)
fix constant pointer outputing on 64 bit machines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 96d9492c30..80f67023f4 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -284,6 +284,11 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
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;