add a marker at the end of the instruction enum list
authorChris Lattner <sabre@nondot.org>
Fri, 26 Aug 2005 20:17:00 +0000 (20:17 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Aug 2005 20:17:00 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23090 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/InstrInfoEmitter.cpp

index 53c15a5f3677d58a235e700076bc767fc4007324..57f776f4ebefc11f9ca0e853dce56bbfbf37ab30 100644 (file)
@@ -40,6 +40,7 @@ void InstrInfoEmitter::runEnums(std::ostream &OS) {
     OS << "    " << NumberedInstructions[i]->TheDef->getName()
        << ", \t// " << i << "\n";
   }
+  OS << "    INSTRUCTION_LIST_END\n";
   OS << "  };\n";
   if (!Namespace.empty())
     OS << "}\n";