From: Andrew Lenharth Date: Fri, 4 Feb 2005 13:47:16 +0000 (+0000) Subject: fix constant pointer outputing on 64 bit machines X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=571c9c314f2f02319ebf485b05dccd6d33bf87af;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 96d9492c307..80f67023f43 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;