diff options
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 9e410b28dcb..eba100ee15e 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1320,13 +1320,7 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, if (FirstOp) FirstOp = false; else OS << ","; OS << " "; - if (i < getDesc().NumOperands) { - const MCOperandInfo &MCOI = getDesc().OpInfo[i]; - if (MCOI.isPredicate()) - OS << "pred:"; - if (MCOI.isOptionalDef()) - OS << "opt:"; - } + if (isDebugValue() && MO.isMetadata()) { // Pretty print DBG_VALUE instructions. auto *DIV = dyn_cast<DILocalVariable>(MO.getMetadata()); |