[TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent...
[oota-llvm.git] / utils / TableGen / AsmWriterEmitter.cpp
index c4f8a6a1ff5700d658b64a658744e74dde283328..0ad6c675e905ecc3b0de3bb8e8b02d995ce3e383 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";
   }