summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-30 23:43:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-30 23:43:36 +0000
commitc696ef9b11710e9a16daece2198a2b65d011d52d (patch)
treeaa3dd9d2e1e331ab09b21fd06e178f0384dd7341 /llvm/lib/Target/ARM/ARMCodeEmitter.cpp
parent883af75f01e7fdc508ba8e1b0096154fa2fd5408 (diff)
downloadbcm5719-llvm-c696ef9b11710e9a16daece2198a2b65d011d52d.tar.gz
bcm5719-llvm-c696ef9b11710e9a16daece2198a2b65d011d52d.zip
I think we got non-machine specific constpool entries covered.
llvm-svn: 58474
Diffstat (limited to 'llvm/lib/Target/ARM/ARMCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMCodeEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
index b6a57e53309..72410901975 100644
--- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud