summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-19 00:07:20 +0000
committerChris Lattner <sabre@nondot.org>2010-03-19 00:07:20 +0000
commitf30187a36324fb75042d9ffd20c3fb70aff7763d (patch)
treeced43d7af6fcedbc8c249647a507c89e19928519 /utils/TableGen/DAGISelEmitter.cpp
parente3486a4c9a4394d5ffe2ddbd4b39199f6c3c624d (diff)
downloadllvm-f30187a36324fb75042d9ffd20c3fb70aff7763d.tar.gz
llvm-f30187a36324fb75042d9ffd20c3fb70aff7763d.tar.bz2
llvm-f30187a36324fb75042d9ffd20c3fb70aff7763d.tar.xz
look up instructions by record, not by name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 73feac1651..ef9b734511 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -75,7 +75,7 @@ static unsigned getResultPatternCost(TreePatternNode *P,
Record *Op = P->getOperator();
if (Op->isSubClassOf("Instruction")) {
Cost++;
- CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op->getName());
+ CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op);
if (II.usesCustomInserter)
Cost += 10;
}