diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-08 11:48:02 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2017-12-08 11:48:02 +0000 |
commit | f4bd295576d6ea3fa1dc69f5ec88e45c9e369fc1 (patch) | |
tree | 9f09773466a8379204c7c53ab3b09b0c5abd41d4 /llvm/lib/CodeGen | |
parent | 6c4ca713f1a9763b3312d5488553f2adff54fefe (diff) | |
download | bcm5719-llvm-f4bd295576d6ea3fa1dc69f5ec88e45c9e369fc1.tar.gz bcm5719-llvm-f4bd295576d6ea3fa1dc69f5ec88e45c9e369fc1.zip |
[CodeGen] Move printing MO_MachineBasicBlock operands to MachineOperand::print
Work towards the unification of MIR and debug output by refactoring the
interfaces.
llvm-svn: 320141
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index b442dab2efb..1250e3588bc 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -855,7 +855,8 @@ void MIPrinter::print(const MachineInstr &MI, unsigned OpIdx, printTargetFlags(Op); switch (Op.getType()) { case MachineOperand::MO_Register: - case MachineOperand::MO_CImmediate: { + case MachineOperand::MO_CImmediate: + case MachineOperand::MO_MachineBasicBlock: { unsigned TiedOperandIdx = 0; if (ShouldPrintRegisterTies && Op.isTied() && !Op.isDef()) TiedOperandIdx = Op.getParent()->findTiedOperandIdx(OpIdx); @@ -873,9 +874,6 @@ void MIPrinter::print(const MachineInstr &MI, unsigned OpIdx, case MachineOperand::MO_FPImmediate: Op.getFPImm()->printAsOperand(OS, /*PrintType=*/true, MST); break; - case MachineOperand::MO_MachineBasicBlock: - OS << printMBBReference(*Op.getMBB()); - break; case MachineOperand::MO_FrameIndex: printStackObjectReference(Op.getIndex()); break; |