forked from OSchip/llvm-project
parent
75f9b72bfc
commit
c7fc432b19
|
@ -81,7 +81,7 @@ void RegScavenger::setUnused(unsigned Reg, const MachineInstr *MI) {
|
|||
}
|
||||
|
||||
void RegScavenger::enterBasicBlock(MachineBasicBlock *mbb) {
|
||||
const MachineFunction &MF = *mbb->getParent();
|
||||
MachineFunction &MF = *mbb->getParent();
|
||||
const TargetMachine &TM = MF.getTarget();
|
||||
TII = TM.getInstrInfo();
|
||||
TRI = TM.getRegisterInfo();
|
||||
|
|
|
@ -694,7 +694,7 @@ void ARMAsmPrinter::printJTBlockOperand(const MachineInstr *MI, int OpNo) {
|
|||
JTEntryDirective = TAI->getData32bitsDirective();
|
||||
|
||||
const MachineFunction *MF = MI->getParent()->getParent();
|
||||
MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||
const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
||||
const std::vector<MachineBasicBlock*> &JTBBs = JT[JTI].MBBs;
|
||||
bool UseSet= TAI->getSetDirective() && TM.getRelocationModel() == Reloc::PIC_;
|
||||
|
|
Loading…
Reference in New Issue