diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:03:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-01 04:03:32 +0000 |
commit | d8adec70f321a22f996d772db16f0b6682efd98e (patch) | |
tree | b78b2f4dec3e5cd910f874585129c9ddde00786a /llvm/utils/TableGen/DAGISelMatcherGen.cpp | |
parent | 86e1c9484f0c674651022c741227eb60749e289c (diff) | |
download | bcm5719-llvm-d8adec70f321a22f996d772db16f0b6682efd98e.tar.gz bcm5719-llvm-d8adec70f321a22f996d772db16f0b6682efd98e.zip |
factor the operand list (and related fields/operations) out of
CodeGenInstruction into its own helper class. No functionality change.
llvm-svn: 117893
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcherGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/DAGISelMatcherGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp index 57c0b155788..c1e3212e81c 100644 --- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp +++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp @@ -678,11 +678,11 @@ EmitResultInstructionAsOperand(const TreePatternNode *N, // in the 'execute always' values. Match up the node operands to the // instruction operands to do this. SmallVector<unsigned, 8> InstOps; - for (unsigned ChildNo = 0, InstOpNo = NumResults, e = II.OperandList.size(); + for (unsigned ChildNo = 0, InstOpNo = NumResults, e = II.Operands.size(); InstOpNo != e; ++InstOpNo) { // Determine what to emit for this operand. - Record *OperandNode = II.OperandList[InstOpNo].Rec; + Record *OperandNode = II.Operands[InstOpNo].Rec; if ((OperandNode->isSubClassOf("PredicateOperand") || OperandNode->isSubClassOf("OptionalDefOperand")) && !CGP.getDefaultOperand(OperandNode).DefaultOps.empty()) { |