Fill in the numOperands field of the TargetInstrDescriptor struct from the
authorChris Lattner <sabre@nondot.org>
Thu, 18 Aug 2005 19:45:37 +0000 (19:45 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Aug 2005 19:45:37 +0000 (19:45 +0000)
.td file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22873 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/InstrInfoEmitter.cpp

index 64629b4863c8a6e170e2115957f48790082bc604..2b2a81c1f34e836c3bfa86d767633121d468860b 100644 (file)
@@ -102,7 +102,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
     OS << Inst.TheDef->getName();
   else
     OS << Inst.Name;
-  OS << "\",\t-1, -1, 0, false, 0, 0, 0, 0";
+  OS << "\",\t" << Inst.OperandList.size() << ", -1, 0, false, 0, 0, 0, 0";
 
   // Emit all of the target indepedent flags...
   if (Inst.isReturn)     OS << "|M_RET_FLAG";