remove some dead code

llvm-svn: 31740
This commit is contained in:
Chris Lattner 2006-11-14 21:41:35 +00:00
parent 7c9f48cefb
commit 75165d07a0
1 changed files with 2 additions and 9 deletions

View File

@ -3725,23 +3725,16 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
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";
}