aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-09 07:06:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-09 07:06:01 +0000
commita541931ddb43191daea4217faa4762934d8bc169 (patch)
treeffaf02ed1a3c7caf2e6eb0d24439c154a2c2d226
parent288e78fbe7704d01bace67df88002f33c82e7ab5 (diff)
Unbreak teh build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49417 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index c7a7c14b99..c2a736eeb8 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -237,6 +237,11 @@ public:
return get(V);
}
+ /// get() - This returns a constant fp for the specified value in the
+ /// specified type. This should only be used for simple constant values like
+ /// 2.0/1.0 etc, that are known-valid both as double and as the target format.
+ ConstantFP *get(const Type *Ty, double V);
+
/// isValueValidForType - return true if Ty is big enough to represent V.
static bool isValueValidForType(const Type *Ty, const APFloat& V);
inline const APFloat& getValueAPF() const { return Val; }