diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-10 23:30:49 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-10 23:30:49 +0000 |
commit | ee65b744e8e7a4a53e06d0ea7d2bb7246e2b0eb5 (patch) | |
tree | 15bf287b64fd9d8123094226dbac67e256c82bd4 /clang/lib/CodeGen | |
parent | 0d81fe7a77eed8598faabfec0fa3b3d01e4a1a0a (diff) | |
download | bcm5719-llvm-ee65b744e8e7a4a53e06d0ea7d2bb7246e2b0eb5.tar.gz bcm5719-llvm-ee65b744e8e7a4a53e06d0ea7d2bb7246e2b0eb5.zip |
Remove switch/case statements and call GetFloatingPointTy() instead to get the
floating point type.
llvm-svn: 147894
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 128bb44bb57..4693fcb7e26 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -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) |