diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-01-17 08:03:18 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-17 08:03:18 +0000 |
| commit | dfce83c8f5326f23df0897b35c67c25f6763012a (patch) | |
| tree | 0ef4d0dcbaea41ee611e975665285f2e22ea9982 /llvm/lib/Target/ARM/ARMJITInfo.h | |
| parent | 67431d79434516483c852b70bfb87432f5db00b1 (diff) | |
| download | bcm5719-llvm-dfce83c8f5326f23df0897b35c67c25f6763012a.tar.gz bcm5719-llvm-dfce83c8f5326f23df0897b35c67c25f6763012a.zip | |
Materialize GA addresses with movw + movt pairs for Darwin in PIC mode. e.g.
movw r0, :lower16:(L_foo$non_lazy_ptr-(LPC0_0+4))
movt r0, :upper16:(L_foo$non_lazy_ptr-(LPC0_0+4))
LPC0_0:
add r0, pc, r0
It's not yet enabled by default as some tests are failing. I suspect bugs in
down stream tools.
llvm-svn: 123619
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMJITInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.h b/llvm/lib/Target/ARM/ARMJITInfo.h index f5d9effeb9a..2f9792813d3 100644 --- a/llvm/lib/Target/ARM/ARMJITInfo.h +++ b/llvm/lib/Target/ARM/ARMJITInfo.h @@ -105,7 +105,7 @@ namespace llvm { /// model is PIC. void Initialize(const MachineFunction &MF, bool isPIC) { const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>(); - ConstPoolId2AddrMap.resize(AFI->getNumConstPoolEntries()); + ConstPoolId2AddrMap.resize(AFI->getNumPICLabels()); JumpTableId2AddrMap.resize(AFI->getNumJumpTables()); IsPIC = isPIC; } |

