diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-15 17:19:24 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-15 17:19:24 +0000 |
commit | c5928d2fad2313bf8e582fec74b2b9a385f350e7 (patch) | |
tree | 7f1e43061bfa33dac8a026018a104001e40bb920 /llvm/lib | |
parent | a8edd048c2ecccd18d5f2f47cad4370fe4350216 (diff) | |
download | bcm5719-llvm-c5928d2fad2313bf8e582fec74b2b9a385f350e7.tar.gz bcm5719-llvm-c5928d2fad2313bf8e582fec74b2b9a385f350e7.zip |
The static function TypeToFloatSemantics is now
unused - remove it.
llvm-svn: 75798
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 5c7c288ce9e..9f544a72059 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -255,20 +255,6 @@ ConstantInt *ConstantInt::get(const APInt& V) { // ConstantFP //===----------------------------------------------------------------------===// -static const fltSemantics *TypeToFloatSemantics(const Type *Ty) { - if (Ty == Type::FloatTy) - return &APFloat::IEEEsingle; - if (Ty == Type::DoubleTy) - return &APFloat::IEEEdouble; - if (Ty == Type::X86_FP80Ty) - return &APFloat::x87DoubleExtended; - else if (Ty == Type::FP128Ty) - return &APFloat::IEEEquad; - - assert(Ty == Type::PPC_FP128Ty && "Unknown FP format"); - return &APFloat::PPCDoubleDouble; -} - ConstantFP::ConstantFP(const Type *Ty, const APFloat& V) : Constant(Ty, ConstantFPVal, 0, 0), Val(V) { assert(&V.getSemantics() == TypeToFloatSemantics(Ty) && |