From c8770aa5070eb484ea21c29d78f71e9c139281a9 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Fri, 4 Feb 2005 13:47:16 +0000 Subject: fix constant pointer outputing on 64 bit machines llvm-svn: 20026 --- llvm/lib/CodeGen/AsmPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 96d9492c307..80f67023f43 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/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; -- cgit v1.2.3