fix constant pointer outputing on 64 bit machines

llvm-svn: 20026
This commit is contained in:
Andrew Lenharth 2005-02-04 13:47:16 +00:00
parent 20b8a65627
commit c8770aa507
1 changed files with 5 additions and 0 deletions

View File

@ -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;