mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
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
This commit is contained in:
parent
9106ecae68
commit
571c9c314f
@ -284,6 +284,11 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
O << Data16bitsDirective;
|
O << Data16bitsDirective;
|
||||||
break;
|
break;
|
||||||
case Type::PointerTyID:
|
case Type::PointerTyID:
|
||||||
|
if (TD.getPointerSize() == 8) {
|
||||||
|
O << Data64bitsDirective;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//Fall through for pointer size == int size
|
||||||
case Type::UIntTyID: case Type::IntTyID:
|
case Type::UIntTyID: case Type::IntTyID:
|
||||||
O << Data32bitsDirective;
|
O << Data32bitsDirective;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user