summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-05 22:26:32 +0000
committerDan Gohman <gohman@apple.com>2010-01-05 22:26:32 +0000
commit404a984780a9aa253fc52e9d3dd36705a6077838 (patch)
tree99d90f1e16f2231ccc5c05a162b61098a1aef807 /llvm/utils/TableGen/FastISelEmitter.cpp
parentdc6e65a6a8d4a56ae3c1c7df22b545b03ba7612f (diff)
downloadbcm5719-llvm-404a984780a9aa253fc52e9d3dd36705a6077838.tar.gz
bcm5719-llvm-404a984780a9aa253fc52e9d3dd36705a6077838.zip
Don't use the ISD::NodeType enum for SDNode opcodes, as CodeGen
uses several kinds of opcode values which are not declared within that enum. This fixes PR5946. llvm-svn: 92794
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 277640d7996..f589bcc9e45 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/utils/TableGen/FastISelEmitter.cpp
@@ -586,7 +586,7 @@ void FastISelMap::PrintFunctionDefinitions(raw_ostream &OS) {
// on opcode and type.
OS << "unsigned FastEmit_";
Operands.PrintManglingSuffix(OS);
- OS << "(MVT VT, MVT RetVT, ISD::NodeType Opcode";
+ OS << "(MVT VT, MVT RetVT, unsigned Opcode";
if (!Operands.empty())
OS << ", ";
Operands.PrintParameters(OS);
OpenPOWER on IntegriCloud