mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
I think we got non-machine specific constpool entries covered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d083f408b
commit
e53a5af966
@ -397,7 +397,8 @@ void ARMCodeEmitter::emitConstPoolInstruction(const MachineInstr &MI) {
|
||||
emitGlobalAddress(GV, ARM::reloc_arm_absolute, false);
|
||||
MCE.emitWordLE(0);
|
||||
} else {
|
||||
abort(); // FIXME: Is this right?
|
||||
assert(CV->getType()->isInteger() &&
|
||||
"Not expecting non-integer constpool entries yet!");
|
||||
const ConstantInt *CI = dyn_cast<ConstantInt>(CV);
|
||||
uint32_t Val = *(uint32_t*)CI->getValue().getRawData();
|
||||
MCE.emitWordLE(Val);
|
||||
|
Loading…
Reference in New Issue
Block a user