diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-30 23:43:36 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-30 23:43:36 +0000 |
commit | e53a5af96652567847508a3131863a9a186ada9b (patch) | |
tree | bbb550fa400fce45c3d80da14eef6dc9a7280351 /lib | |
parent | 1d083f408bed5f1b27310dc98a6f47025a88571d (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMCodeEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index b6a57e5330..7241090197 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -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); |