Update the CPP backend for the ConstantFP::get API change.
authorDan Gohman <gohman@apple.com>
Mon, 9 Jun 2008 14:08:11 +0000 (14:08 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 9 Jun 2008 14:08:11 +0000 (14:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52144 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CppBackend/CPPBackend.cpp

index a16b720c50b9d4870f8d0d9a498553d8b67cb774..22dd3058de0a3bdc70110bf75f6b7a395584e7bc 100644 (file)
@@ -221,10 +221,6 @@ namespace {
     if (CFP->getType() == Type::FloatTy)
       APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven);
     Out << "ConstantFP::get(";
-    if (CFP->getType() == Type::DoubleTy)
-      Out << "Type::DoubleTy, ";
-    else
-      Out << "Type::FloatTy, ";
     Out << "APFloat(";
 #if HAVE_PRINTF_A
     char Buffer[100];