aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-07-15 17:19:24 +0000
committerDuncan Sands <baldrick@free.fr>2009-07-15 17:19:24 +0000
commit7fe3dd5b7ea9ef7d3cfd6d26dfdd7ddf49718339 (patch)
treed81182782cb1cdb05b6c82dc469d2e08c00ebe3d
parent1d05b237a5bc92b7c7904bbd075a703047268ee5 (diff)
downloadexternal_llvm-7fe3dd5b7ea9ef7d3cfd6d26dfdd7ddf49718339.zip
external_llvm-7fe3dd5b7ea9ef7d3cfd6d26dfdd7ddf49718339.tar.gz
external_llvm-7fe3dd5b7ea9ef7d3cfd6d26dfdd7ddf49718339.tar.bz2
The static function TypeToFloatSemantics is now
unused - remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75798 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Constants.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index 5c7c288..9f544a7 100644
--- a/lib/VMCore/Constants.cpp
+++ b/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) &&