summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMJITInfo.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-15 19:55:14 +0000
committerEric Christopher <echristo@gmail.com>2014-06-15 19:55:14 +0000
commit47d34abdb0ae85d28feda027884a95d6fe99d442 (patch)
tree9464c119ecb43c3a156c5cfca44446642aad04df /lib/Target/ARM/ARMJITInfo.h
parent61bfbc4d966f1c1bcf9aabe36500d643d821fe43 (diff)
downloadllvm-47d34abdb0ae85d28feda027884a95d6fe99d442.tar.gz
llvm-47d34abdb0ae85d28feda027884a95d6fe99d442.tar.bz2
llvm-47d34abdb0ae85d28feda027884a95d6fe99d442.tar.xz
Temporarily revert r210953 in an attempt to bring the ARM buildbots
back. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMJITInfo.h')
-rw-r--r--lib/Target/ARM/ARMJITInfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.h b/lib/Target/ARM/ARMJITInfo.h
index 27e2a20134..ee4c863543 100644
--- a/lib/Target/ARM/ARMJITInfo.h
+++ b/lib/Target/ARM/ARMJITInfo.h
@@ -14,6 +14,7 @@
#ifndef ARMJITINFO_H
#define ARMJITINFO_H
+#include "ARMMachineFunctionInfo.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineConstantPool.h"
@@ -102,7 +103,12 @@ namespace llvm {
/// Resize constant pool ids to CONSTPOOL_ENTRY addresses map; resize
/// jump table ids to jump table bases map; remember if codegen relocation
/// model is PIC.
- void Initialize(const MachineFunction &MF, bool isPIC);
+ void Initialize(const MachineFunction &MF, bool isPIC) {
+ const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();
+ ConstPoolId2AddrMap.resize(AFI->getNumPICLabels());
+ JumpTableId2AddrMap.resize(AFI->getNumJumpTables());
+ IsPIC = isPIC;
+ }
/// getConstantPoolEntryAddr - The ARM target puts all constant
/// pool entries into constant islands. This returns the address of the