]> granicus.if.org Git - llvm/commitdiff
[WebAssembly] Use print instead of dump method.
authorRichard Trieu <rtrieu@google.com>
Sat, 28 Jan 2017 03:23:49 +0000 (03:23 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 28 Jan 2017 03:23:49 +0000 (03:23 +0000)
This fixes non-debug non-assert builds after r293359.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293368 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp

index 022a448590ecea893f770e775297f8519358567f..f3384210b0e9e249a93fbfd7e8cd45c5abe29bcd 100644 (file)
@@ -64,10 +64,10 @@ void WebAssemblyMCInstLower::Lower(const MachineInstr *MI,
     MCOperand MCOp;
     switch (MO.getType()) {
     default:
-      MI->dump();
+      MI->print(errs());
       llvm_unreachable("unknown operand type");
     case MachineOperand::MO_MachineBasicBlock:
-      MI->dump();
+      MI->print(errs());
       llvm_unreachable("MachineBasicBlock operand should have been rewritten");
     case MachineOperand::MO_Register: {
       // Ignore all implicit register operands.