summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.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
commit9aec14b5607e8184b19f2d33d307b328f2a700c0 (patch)
tree03deb3942bdd4ee6e54774f1ad9c144423b1fcf4 /llvm/utils/TableGen/FastISelEmitter.cpp
parent83facb08120b04b9c5f8b323675d01cacfa1f3af (diff)
downloadbcm5719-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/FastISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FastISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp
index b94ded64526..52f9563ec72 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/utils/TableGen/FastISelEmitter.cpp
@@ -254,7 +254,7 @@ void FastISelMap::CollectPatterns(CodeGenDAGPatterns &CGP) {
Record *Op = Dst->getOperator();
if (!Op->isSubClassOf("Instruction"))
continue;
- CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op->getName());
+ CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op);
if (II.OperandList.empty())
continue;
OpenPOWER on IntegriCloud