remove some dead code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-11-14 21:41:35 +00:00
parent ab51ddd7c0
commit 0d1bb1322c

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";
}