summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index bd06eec4d3c..f738385adcc 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -566,8 +566,13 @@ void MIPrinter::print(const MachineInstr &MI) {
OS << TII->getName(MI.getOpcode());
if (isPreISelGenericOpcode(MI.getOpcode())) {
assert(MI.getType().isValid() && "Generic instructions must have a type");
- OS << ' ';
- MI.getType().print(OS);
+ OS << " { ";
+ for (unsigned i = 0; i < MI.getNumTypes(); ++i) {
+ MI.getType().print(OS);
+ if (i + 1 != MI.getNumTypes())
+ OS << ", ";
+ }
+ OS << " } ";
}
if (I < E)
OS << ' ';
OpenPOWER on IntegriCloud