From: Dan Gohman Date: Mon, 24 Aug 2015 21:19:48 +0000 (+0000) Subject: [WebAssembly] Make the assembly printer indent instructions. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=99f0983900f9f220476fa9a46232a7b7b45af92f;p=oota-llvm.git [WebAssembly] Make the assembly printer indent instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245875 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp index 6f98b4f6ed0..a3cbcbbeaf6 100644 --- a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp +++ b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp @@ -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();