summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Constants.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-01-18 16:43:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-01-18 16:43:06 +0000
commitbedf842b78d00dc481a83edf7f1a3ca5f21a3805 (patch)
treea749411316292363928b814cc2a4a51de54f021d /include/llvm/IR/Constants.h
parent4bd80f02d6891e7718e0d53f3e89640edeea5371 (diff)
downloadllvm-bedf842b78d00dc481a83edf7f1a3ca5f21a3805.tar.gz
llvm-bedf842b78d00dc481a83edf7f1a3ca5f21a3805.tar.bz2
llvm-bedf842b78d00dc481a83edf7f1a3ca5f21a3805.tar.xz
Upgrade ConstantFP's negative zero and infinity getters to handle vector types.
Will be used soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Constants.h')
-rw-r--r--include/llvm/IR/Constants.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IR/Constants.h b/include/llvm/IR/Constants.h
index 3aedb00cf6..1acf5b6cc8 100644
--- a/include/llvm/IR/Constants.h
+++ b/include/llvm/IR/Constants.h
@@ -255,8 +255,8 @@ public:
static Constant *get(Type* Ty, double V);
static Constant *get(Type* Ty, StringRef Str);
static ConstantFP *get(LLVMContext &Context, const APFloat &V);
- static ConstantFP *getNegativeZero(Type* Ty);
- static ConstantFP *getInfinity(Type *Ty, bool Negative = false);
+ static Constant *getNegativeZero(Type *Ty);
+ static Constant *getInfinity(Type *Ty, bool Negative = false);
/// isValueValidForType - return true if Ty is big enough to represent V.
static bool isValueValidForType(Type *Ty, const APFloat &V);