[PATCH] D35946: Fix printing of alias instructions by removing redundant spacing
Petar Jovanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 10:01:01 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL318059: fix printing of alias instructions by removing redundant spacing (authored by petarj).
Changed prior to commit:
https://reviews.llvm.org/D35946?vs=108478&id=122681#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35946
Files:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Index: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
===================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
@@ -1024,8 +1024,10 @@
O << " OS << '\\t' << StringRef(AsmString, I);\n";
O << " if (AsmString[I] != '\\0') {\n";
- O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t')";
+ O << " if (AsmString[I] == ' ' || AsmString[I] == '\\t') {\n";
O << " OS << '\\t';\n";
+ O << " ++I;\n";
+ O << " }\n";
O << " do {\n";
O << " if (AsmString[I] == '$') {\n";
O << " ++I;\n";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35946.122681.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171113/72a4094e/attachment.bin>
More information about the llvm-commits
mailing list