[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
sabre at nondot.org
Tue Nov 14 13:41:49 PST 2006
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.284 -> 1.285
---
Log message:
remove some dead code
---
Diffs of the changes: (+2 -9)
DAGISelEmitter.cpp | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.284 llvm/utils/TableGen/DAGISelEmitter.cpp:1.285
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.284 Tue Nov 14 15:32:01 2006
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Tue Nov 14 15:41:35 2006
@@ -3725,23 +3725,16 @@
OS << " return Select_" << getLegalCName(OpName)
<< (VTStr != "" ? "_" : "") << VTStr << "(N);\n";
} else {
- int Default = -1;
OS << " switch (NVT) {\n";
for (unsigned i = 0, e = OpVTs.size(); i < e; ++i) {
std::string &VTStr = OpVTs[i];
- if (VTStr == "") {
- Default = i;
- continue;
- }
+ assert(!VTStr.empty() && "Unset vtstr?");
OS << " case MVT::" << VTStr << ":\n"
<< " return Select_" << getLegalCName(OpName)
<< "_" << VTStr << "(N);\n";
}
OS << " default:\n";
- if (Default != -1)
- OS << " return Select_" << getLegalCName(OpName) << "(N);\n";
- else
- OS << " break;\n";
+ OS << " break;\n";
OS << " }\n";
OS << " break;\n";
}
More information about the llvm-commits
mailing list