diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-13 23:04:46 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-13 23:04:46 +0000 |
commit | a0cdc005dde2ffdb81d10866a13e88449b091168 (patch) | |
tree | f94cdb8ea98d60cb17f71564836dd29c3c0adc4e /llvm/lib/Target/ARM/ARMJITInfo.cpp | |
parent | bd810fd1528187542566bbee4e1807a9dede9bd7 (diff) | |
download | bcm5719-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.cpp | 8 |
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; +} |