[llvm] r257308 - [TableGen] Remove a few spaces from AsmMatcher output. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 10 18:11:36 PST 2016


Author: ctopper
Date: Sun Jan 10 20:11:36 2016
New Revision: 257308

URL: http://llvm.org/viewvc/llvm-project?rev=257308&view=rev
Log:
[TableGen] Remove a few spaces from AsmMatcher output. NFC

Modified:
    llvm/trunk/utils/TableGen/AsmWriterInst.cpp

Modified: llvm/trunk/utils/TableGen/AsmWriterInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterInst.cpp?rev=257308&r1=257307&r2=257308&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterInst.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterInst.cpp Sun Jan 10 20:11:36 2016
@@ -29,8 +29,8 @@ static bool isIdentChar(char C) {
 std::string AsmWriterOperand::getCode() const {
   if (OperandType == isLiteralTextOperand) {
     if (Str.size() == 1)
-      return "O << '" + Str + "'; ";
-    return "O << \"" + Str + "\"; ";
+      return "O << '" + Str + "';";
+    return "O << \"" + Str + "\";";
   }
 
   if (OperandType == isLiteralStatementOperand)
@@ -44,7 +44,7 @@ std::string AsmWriterOperand::getCode()
   Result += ", O";
   if (!MiModifier.empty())
     Result += ", \"" + MiModifier + '"';
-  return Result + "); ";
+  return Result + ");";
 }
 
 /// ParseAsmString - Parse the specified Instruction's AsmString into this




More information about the llvm-commits mailing list