mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[MachineInst] Remove dead code. NFCI.
The MachineFunction MF value is not used any more and is always null.
This commit is contained in:
parent
fc4498117c
commit
e5707f0783
@ -1525,7 +1525,6 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
|||||||
bool IsStandalone, bool SkipOpers, bool SkipDebugLoc,
|
bool IsStandalone, bool SkipOpers, bool SkipDebugLoc,
|
||||||
bool AddNewLine, const TargetInstrInfo *TII) const {
|
bool AddNewLine, const TargetInstrInfo *TII) const {
|
||||||
// We can be a bit tidier if we know the MachineFunction.
|
// We can be a bit tidier if we know the MachineFunction.
|
||||||
const MachineFunction *MF = nullptr;
|
|
||||||
const TargetRegisterInfo *TRI = nullptr;
|
const TargetRegisterInfo *TRI = nullptr;
|
||||||
const MachineRegisterInfo *MRI = nullptr;
|
const MachineRegisterInfo *MRI = nullptr;
|
||||||
const TargetIntrinsicInfo *IntrinsicInfo = nullptr;
|
const TargetIntrinsicInfo *IntrinsicInfo = nullptr;
|
||||||
@ -1817,14 +1816,6 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
|||||||
}
|
}
|
||||||
auto *DV = cast<DILocalVariable>(getOperand(e - 2).getMetadata());
|
auto *DV = cast<DILocalVariable>(getOperand(e - 2).getMetadata());
|
||||||
OS << " line no:" << DV->getLine();
|
OS << " line no:" << DV->getLine();
|
||||||
if (auto *InlinedAt = debugLoc->getInlinedAt()) {
|
|
||||||
DebugLoc InlinedAtDL(InlinedAt);
|
|
||||||
if (InlinedAtDL && MF) {
|
|
||||||
OS << " inlined @[ ";
|
|
||||||
InlinedAtDL.print(OS);
|
|
||||||
OS << " ]";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isIndirectDebugValue())
|
if (isIndirectDebugValue())
|
||||||
OS << " indirect";
|
OS << " indirect";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user