[llvm-commits] [llvm] r58474 - /llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Thu Oct 30 16:43:36 PDT 2008
Author: evancheng
Date: Thu Oct 30 18:43:36 2008
New Revision: 58474
URL: http://llvm.org/viewvc/llvm-project?rev=58474&view=rev
Log:
I think we got non-machine specific constpool entries covered.
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp?rev=58474&r1=58473&r2=58474&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Thu Oct 30 18:43:36 2008
@@ -397,7 +397,8 @@
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);
More information about the llvm-commits
mailing list