mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 13:51:37 +00:00
fix constant pointer outputing on 64 bit machines
llvm-svn: 20026
This commit is contained in:
parent
ba6d8c411f
commit
d2d24eee40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user