projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d083f4
)
I think we got non-machine specific constpool entries covered.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 30 Oct 2008 23:43:36 +0000
(23:43 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 30 Oct 2008 23:43:36 +0000
(23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58474
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMCodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMCodeEmitter.cpp
b/lib/Target/ARM/ARMCodeEmitter.cpp
index b6a57e533094c6123bc546ca5f70c8e13a84f615..7241090197532f9b55c0ed8de555615e0923ad9f 100644
(file)
--- 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);