OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a77da
)
[WebAssembly] Make the assembly printer indent instructions.
author
Dan Gohman
<dan433584@gmail.com>
Mon, 24 Aug 2015 21:19:48 +0000
(21:19 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
b/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
index
6f98b4f
..
a3cbcbb
100644
(file)
--- 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();