mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Find longs by type, not by their primitive size being 64. Patch by Nate Begeman.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b29776d68
commit
f63bc199c6
@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else if (CV->getType()->getPrimitiveSize() == 64) {
|
||||
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
|
||||
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
|
||||
union DU { // Abide by C TBAA rules
|
||||
int64_t UVal;
|
||||
|
@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else if (CV->getType()->getPrimitiveSize() == 64) {
|
||||
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
|
||||
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
|
||||
union DU { // Abide by C TBAA rules
|
||||
int64_t UVal;
|
||||
|
@ -294,7 +294,7 @@ void Printer::emitGlobalConstant(const Constant *CV) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else if (CV->getType()->getPrimitiveSize() == 64) {
|
||||
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
|
||||
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
|
||||
union DU { // Abide by C TBAA rules
|
||||
int64_t UVal;
|
||||
|
Loading…
Reference in New Issue
Block a user