[TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent...
authorCraig Topper <craig.topper@gmail.com>
Mon, 11 Jan 2016 05:13:38 +0000 (05:13 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 11 Jan 2016 05:13:38 +0000 (05:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257314 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmWriterEmitter.cpp

index c4f8a6a..0ad6c67 100644 (file)
@@ -398,8 +398,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
     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::EmitPrintInstruction(raw_ostream &O) {
       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";
   }