summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMJITInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-07 22:57:53 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-07 22:57:53 +0000
commitef4d78ba67d4917716a15adfa127a507ffe7b62c (patch)
treed0119d203ea2b51498b9ae1c2b0230ba334a9b5f /llvm/lib/Target/ARM/ARMJITInfo.cpp
parent160be0ffdab141fd309344edfdc486db77154ef9 (diff)
downloadbcm5719-llvm-ef4d78ba67d4917716a15adfa127a507ffe7b62c.tar.gz
bcm5719-llvm-ef4d78ba67d4917716a15adfa127a507ffe7b62c.zip
More code clean up.
llvm-svn: 58872
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMJITInfo.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp
index 52036ba3517..c0b878251ba 100644
--- a/llvm/lib/Target/ARM/ARMJITInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMJITInfo.cpp
@@ -180,11 +180,7 @@ intptr_t ARMJITInfo::resolveRelocDestAddr(MachineRelocation *MR) const {
// Constant pool entry address.
return getConstantPoolEntryAddr(MR->getConstantPoolIndex());
else if (RT == ARM::reloc_arm_machine_cp_entry) {
- const MachineConstantPoolEntry &MCPE = (*MCPEs)[MR->getConstantVal()];
- assert(MCPE.isMachineConstantPoolEntry() &&
- "Expecting a machine constant pool entry!");
- ARMConstantPoolValue *ACPV =
- static_cast<ARMConstantPoolValue*>(MCPE.Val.MachineCPVal);
+ ARMConstantPoolValue *ACPV = (ARMConstantPoolValue*)MR->getConstantVal();
assert((!ACPV->hasModifier() && !ACPV->mustAddCurrentAddress()) &&
"Can't handle this machine constant pool entry yet!");
intptr_t Addr = (intptr_t)(MR->getResultPointer());
OpenPOWER on IntegriCloud