Remove switch/case statements and call GetFloatingPointTy() instead to get the
floating point type.

llvm-svn: 147894
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 128bb44..4693fcb 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -3225,19 +3225,7 @@
       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)