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 | 9db0a5e7e360d8048c83ee1c46a88c4172182791 (patch) | |
tree | 42a1933499a5ef56e5922e768b0ea8a8f09f9a12 /lib/CodeGen/TargetInfo.cpp | |
parent | 6d1080fd1851f18bd40bb46fa074aa1252b13e8e (diff) |
Remove switch/case statements and call GetFloatingPointTy() instead to get the
floating point type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 128bb44bb5..4693fcb7e2 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/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) |