Remove switch/case statements and call GetFloatingPointTy() instead to get the

floating point type.

llvm-svn: 147894
This commit is contained in:
Akira Hatanaka 2012-01-10 23:30:49 +00:00
parent 0d81fe7a77
commit ee65b744e8
1 changed files with 1 additions and 13 deletions

View File

@ -3225,19 +3225,7 @@ MipsABIInfo::returnAggregateInRegs(QualType RetTy, uint64_t Size) const {
if (!BT || !BT->isFloatingPoint())
break;
switch (BT->getKind()) {
case BuiltinType::Float:
RTList.push_back(llvm::Type::getFloatTy(getVMContext()));
break;
case BuiltinType::Double:
RTList.push_back(llvm::Type::getDoubleTy(getVMContext()));
break;
case BuiltinType::LongDouble:
RTList.push_back(llvm::Type::getFP128Ty(getVMContext()));
break;
default:
assert(false && "Unexpexted floating point type.");
}
RTList.push_back(GetFloatingPointTy(BT));
}
if (i == e)