summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-01 08:00:54 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-01 08:00:54 +0000
commit7753d66468faba90059031833c294df672f93942 (patch)
tree11794c20042b359cf65266d4752286c82d0b7ea5 /llvm/lib/Target/ARM/ARMFastISel.cpp
parentf117a35de0720a0e44b1418e6da29e86435205a8 (diff)
downloadbcm5719-llvm-7753d66468faba90059031833c294df672f93942.tar.gz
bcm5719-llvm-7753d66468faba90059031833c294df672f93942.zip
Switch over to using ARMConstantPoolConstant for global variables, functions,
and block addresses. llvm-svn: 140936
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 190563a5717..9bc7ef21d8a 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -598,8 +598,9 @@ unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, EVT VT) {
// Grab index.
unsigned PCAdj = (RelocM != Reloc::PIC_) ? 0 : (Subtarget->isThumb() ? 4 : 8);
unsigned Id = AFI->createPICLabelUId();
- ARMConstantPoolValue *CPV = new ARMConstantPoolValue(GV, Id,
- ARMCP::CPValue, PCAdj);
+ ARMConstantPoolValue *CPV = ARMConstantPoolConstant::Create(GV, Id,
+ ARMCP::CPValue,
+ PCAdj);
unsigned Idx = MCP.getConstantPoolIndex(CPV, Align);
// Load value.
OpenPOWER on IntegriCloud