diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-02-29 19:22:40 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-02-29 19:25:02 +0000 |
commit | d955b221cb252dc6f065f3f3889de6fc2ddc17ce (patch) | |
tree | c8d458f6b9d3c68595985881ae8c9d06155ff8ce /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 6e7a768354c5a518832ea36b7fd629970c120648 (diff) | |
download | llvm-d955b221cb252dc6f065f3f3889de6fc2ddc17ce.zip llvm-d955b221cb252dc6f065f3f3889de6fc2ddc17ce.tar.gz llvm-d955b221cb252dc6f065f3f3889de6fc2ddc17ce.tar.bz2 |
[MachineInst] Remove dead code. NFCI.
The MachineFunction MF value is not used any more and is always null.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index bbf0e91..542dc22 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -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; @@ -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"; } |