From dcfa353d7477ed90409cec7c89deb29e8f09c4ed Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Aug 2005 19:45:37 +0000 Subject: [PATCH] Fill in the numOperands field of the TargetInstrDescriptor struct from the .td file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22873 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/InstrInfoEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 64629b4863c..2b2a81c1f34 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -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"; -- 2.34.1