Move ConstantFP construction back to the 2.5-ish API.
[oota-llvm.git] / lib / AsmParser / LLParser.cpp
index c6f1b257bdff097684f16be433450655f2af8a7d..f9db40915ae07927fef1390eb26e8e43a1324923 100644 (file)
@@ -2143,7 +2143,7 @@ bool LLParser::ConvertGlobalValIDToValue(const Type *Ty, ValID &ID,
       ID.APFloatVal.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven,
                             &Ignored);
     }
-    V = Context.getConstantFP(ID.APFloatVal);
+    V = ConstantFP::get(Context, ID.APFloatVal);
       
     if (V->getType() != Ty)
       return Error(ID.Loc, "floating point constant does not have type '" +