[llvm] r245875 - [WebAssembly] Make the assembly printer indent instructions.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 14:19:48 PDT 2015


Author: djg
Date: Mon Aug 24 16:19:48 2015
New Revision: 245875

URL: http://llvm.org/viewvc/llvm-project?rev=245875&view=rev
Log:
[WebAssembly] Make the assembly printer indent instructions.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp?rev=245875&r1=245874&r2=245875&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp Mon Aug 24 16:19:48 2015
@@ -92,6 +92,8 @@ void WebAssemblyAsmPrinter::EmitInstruct
   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();




More information about the llvm-commits mailing list