[llvm] r257314 - [TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent ending an array with a comma. But that's perfectly legal and not something we need to prevent. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 10 21:13:38 PST 2016


Author: ctopper
Date: Sun Jan 10 23:13:38 2016
New Revision: 257314

URL: http://llvm.org/viewvc/llvm-project?rev=257314&view=rev
Log:
[TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent ending an array with a comma. But that's perfectly legal and not something we need to prevent. NFC

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

Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=257314&r1=257313&r2=257314&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Sun Jan 10 23:13:38 2016
@@ -398,8 +398,6 @@ void AsmWriterEmitter::EmitPrintInstruct
     O << "    " << (OpcodeInfo[i] & 0xffffffff) << "U,\t// "
       << NumberedInstructions->at(i)->TheDef->getName() << "\n";
   }
-  // Add a dummy entry so the array init doesn't end with a comma.
-  O << "    0U\n";
   O << "  };\n\n";
 
   if (BitsLeft < 32) {
@@ -412,8 +410,6 @@ void AsmWriterEmitter::EmitPrintInstruct
       O << "    " << (OpcodeInfo[i] >> 32) << "U,\t// "
         << NumberedInstructions->at(i)->TheDef->getName() << "\n";
     }
-    // Add a dummy entry so the array init doesn't end with a comma.
-    O << "    0U\n";
     O << "  };\n\n";
   }
 




More information about the llvm-commits mailing list