mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -382,7 +382,9 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &mf) {
|
||||
<< MCP->getConstants().size() << " CP entries, aligned to "
|
||||
<< MCP->getConstantPoolAlignment() << " bytes *****\n");
|
||||
|
||||
TII = (const ARMBaseInstrInfo*)MF->getTarget().getInstrInfo();
|
||||
TII = (const ARMBaseInstrInfo *)MF->getTarget()
|
||||
.getSubtargetImpl()
|
||||
->getInstrInfo();
|
||||
AFI = MF->getInfo<ARMFunctionInfo>();
|
||||
STI = &MF->getTarget().getSubtarget<ARMSubtarget>();
|
||||
|
||||
@@ -529,7 +531,7 @@ ARMConstantIslands::doInitialPlacement(std::vector<MachineInstr*> &CPEMIs) {
|
||||
// identity mapping of CPI's to CPE's.
|
||||
const std::vector<MachineConstantPoolEntry> &CPs = MCP->getConstants();
|
||||
|
||||
const DataLayout &TD = *MF->getTarget().getDataLayout();
|
||||
const DataLayout &TD = *MF->getTarget().getSubtargetImpl()->getDataLayout();
|
||||
for (unsigned i = 0, e = CPs.size(); i != e; ++i) {
|
||||
unsigned Size = TD.getTypeAllocSize(CPs[i].getType());
|
||||
assert(Size >= 4 && "Too small constant pool entry");
|
||||
|
Reference in New Issue
Block a user