summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMJITInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-13 23:04:46 +0000
committerEric Christopher <echristo@gmail.com>2014-06-13 23:04:46 +0000
commita0cdc005dde2ffdb81d10866a13e88449b091168 (patch)
treef94cdb8ea98d60cb17f71564836dd29c3c0adc4e /llvm/lib/Target/ARM/ARMJITInfo.cpp
parentbd810fd1528187542566bbee4e1807a9dede9bd7 (diff)
downloadbcm5719-llvm-a0cdc005dde2ffdb81d10866a13e88449b091168.tar.gz
bcm5719-llvm-a0cdc005dde2ffdb81d10866a13e88449b091168.zip
Move ARMJITInfo off of the TargetMachine and down onto the subtarget.
This required untangling a mess of headers that included around. llvm-svn: 210953
Diffstat (limited to 'llvm/lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMJITInfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp
index 8821c2dd09f..6d1114d51aa 100644
--- a/llvm/lib/Target/ARM/ARMJITInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMJITInfo.cpp
@@ -13,6 +13,7 @@
#include "ARMJITInfo.h"
#include "ARMConstantPoolValue.h"
+#include "ARMMachineFunctionInfo.h"
#include "ARMRelocations.h"
#include "MCTargetDesc/ARMBaseInfo.h"
#include "llvm/CodeGen/JITCodeEmitter.h"
@@ -334,3 +335,10 @@ void ARMJITInfo::relocate(void *Function, MachineRelocation *MR,
}
}
}
+
+void ARMJITInfo::Initialize(const MachineFunction &MF, bool isPIC) {
+ const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();
+ ConstPoolId2AddrMap.resize(AFI->getNumPICLabels());
+ JumpTableId2AddrMap.resize(AFI->getNumJumpTables());
+ IsPIC = isPIC;
+}
OpenPOWER on IntegriCloud