summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-18 19:45:37 +0000
committerChris Lattner <sabre@nondot.org>2005-08-18 19:45:37 +0000
commit6f52a04fc72279e717f67b6d7694aaa5d3c1d3d9 (patch)
treed5e0ddbfe3e2ce36010396544ef66f5ef37ccb56 /llvm/utils/TableGen/InstrInfoEmitter.cpp
parent35ca73d3355ee3a63655ddca9272f2f13bbaaeaa (diff)
downloadbcm5719-llvm-6f52a04fc72279e717f67b6d7694aaa5d3c1d3d9.tar.gz
bcm5719-llvm-6f52a04fc72279e717f67b6d7694aaa5d3c1d3d9.zip
Fill in the numOperands field of the TargetInstrDescriptor struct from the
.td file. llvm-svn: 22873
Diffstat (limited to 'llvm/utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/InstrInfoEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index 64629b4863c..2b2a81c1f34 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud