From: Evan Cheng Date: Thu, 30 Oct 2008 23:43:36 +0000 (+0000) Subject: I think we got non-machine specific constpool entries covered. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e53a5af96652567847508a3131863a9a186ada9b;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index b6a57e53309..72410901975 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(CV); uint32_t Val = *(uint32_t*)CI->getValue().getRawData(); MCE.emitWordLE(Val);