From: Chris Lattner Date: Thu, 18 Aug 2005 19:45:37 +0000 (+0000) Subject: Fill in the numOperands field of the TargetInstrDescriptor struct from the X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dcfa353d7477ed90409cec7c89deb29e8f09c4ed;p=oota-llvm.git 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 --- 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";