mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Move ARMJITInfo off of the TargetMachine and down onto the subtarget.
This required untangling a mess of headers that included around. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user