diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-18 19:45:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-18 19:45:37 +0000 |
commit | dcfa353d7477ed90409cec7c89deb29e8f09c4ed (patch) | |
tree | c6a628676e2a6f02996b0820e53eb2d4a8aabe16 | |
parent | 8e083803cf20950b0945c63a85540797afe227ae (diff) | |
download | llvm-dcfa353d7477ed90409cec7c89deb29e8f09c4ed.tar.gz llvm-dcfa353d7477ed90409cec7c89deb29e8f09c4ed.tar.bz2 llvm-dcfa353d7477ed90409cec7c89deb29e8f09c4ed.tar.xz |
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
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 64629b4863..2b2a81c1f3 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"; |