diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-19 00:07:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-19 00:07:20 +0000 |
commit | 9aec14b5607e8184b19f2d33d307b328f2a700c0 (patch) | |
tree | 03deb3942bdd4ee6e54774f1ad9c144423b1fcf4 /llvm/utils/TableGen/DAGISelMatcherGen.cpp | |
parent | 83facb08120b04b9c5f8b323675d01cacfa1f3af (diff) | |
download | bcm5719-llvm-9aec14b5607e8184b19f2d33d307b328f2a700c0.tar.gz bcm5719-llvm-9aec14b5607e8184b19f2d33d307b328f2a700c0.zip |
look up instructions by record, not by name.
llvm-svn: 98904
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcherGen.cpp')
-rw-r--r-- | llvm/utils/TableGen/DAGISelMatcherGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp index 4d0b74b5310..0d7d9ae73a5 100644 --- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp +++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp @@ -627,7 +627,7 @@ EmitResultInstructionAsOperand(const TreePatternNode *N, SmallVectorImpl<unsigned> &OutputOps) { Record *Op = N->getOperator(); const CodeGenTarget &CGT = CGP.getTargetInfo(); - CodeGenInstruction &II = CGT.getInstruction(Op->getName()); + CodeGenInstruction &II = CGT.getInstruction(Op); const DAGInstruction &Inst = CGP.getInstruction(Op); // If we can, get the pattern for the instruction we're generating. We derive |