forked from OSchip/llvm-project
Remove switch/case statements and call GetFloatingPointTy() instead to get the
floating point type. llvm-svn: 147894
This commit is contained in:
parent
0d81fe7a77
commit
ee65b744e8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue