From b41dbbe32582dcfe18e6ea763886fabf5fd7c84d Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Wed, 13 Dec 2017 10:30:59 +0000 Subject: [CodeGen] Print jump-table index operands as %jump-table.0 in both MIR and debug output Work towards the unification of MIR and debug output by printing `%jump-table.0` instead of ``. Only debug syntax is affected. llvm-svn: 320566 --- llvm/lib/CodeGen/MachineOperand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineOperand.cpp') diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp index cd8c86e782a..82e635d9c62 100644 --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -14,6 +14,7 @@ #include "llvm/CodeGen/MachineOperand.h" #include "llvm/Analysis/Loads.h" #include "llvm/CodeGen/MIRPrinter.h" +#include "llvm/CodeGen/MachineJumpTableInfo.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/CodeGen/TargetInstrInfo.h" #include "llvm/CodeGen/TargetRegisterInfo.h" @@ -523,7 +524,7 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST, break; } case MachineOperand::MO_JumpTableIndex: - OS << "'; + OS << printJumpTableEntryReference(getIndex()); break; case MachineOperand::MO_GlobalAddress: OS << "