Skip to content

Commit

Permalink
[MachineInst] Remove dead code. NFCI.
Browse files Browse the repository at this point in the history
The MachineFunction MF value is not used any more and is always null.
  • Loading branch information
RKSimon committed Feb 29, 2020
1 parent 6e7a768 commit d955b22
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions llvm/lib/CodeGen/MachineInstr.cpp
Expand Up @@ -1525,7 +1525,6 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
bool IsStandalone, bool SkipOpers, bool SkipDebugLoc,
bool AddNewLine, const TargetInstrInfo *TII) const {
// We can be a bit tidier if we know the MachineFunction.
const MachineFunction *MF = nullptr;
const TargetRegisterInfo *TRI = nullptr;
const MachineRegisterInfo *MRI = nullptr;
const TargetIntrinsicInfo *IntrinsicInfo = nullptr;
Expand Down Expand Up @@ -1817,14 +1816,6 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST,
}
auto *DV = cast<DILocalVariable>(getOperand(e - 2).getMetadata());
OS << " line no:" << DV->getLine();
if (auto *InlinedAt = debugLoc->getInlinedAt()) {
DebugLoc InlinedAtDL(InlinedAt);
if (InlinedAtDL && MF) {
OS << " inlined @[ ";
InlinedAtDL.print(OS);
OS << " ]";
}
}
if (isIndirectDebugValue())
OS << " indirect";
}
Expand Down

0 comments on commit d955b22

Please sign in to comment.