[WebAssembly] Make the assembly printer indent instructions.
authorDan Gohman <dan433584@gmail.com>
Mon, 24 Aug 2015 21:19:48 +0000 (21:19 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 24 Aug 2015 21:19:48 +0000 (21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245875 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp

index 6f98b4f6ed02e442c935c236a2c298260b904849..a3cbcbbeaf6dc33820a22cf22244050f259680eb 100644 (file)
@@ -92,6 +92,8 @@ void WebAssemblyAsmPrinter::EmitInstruction(const MachineInstr *MI) {
   assert(NumDefs <= 1 &&
          "Instructions with multiple result values not implemented");
 
+  OS << '\t';
+
   if (NumDefs != 0) {
     const MachineOperand &MO = MI->getOperand(0);
     unsigned Reg = MO.getReg();