diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-02-02 01:07:50 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-02-02 01:07:50 +0000 |
commit | e62a8a353c3b21b551c00b9025800d3352e5349e (patch) | |
tree | a37067a905622f829f744199fd5a0f2ba8cdb41e /include/llvm-c | |
parent | b8033e821d9ccad10ba8770c4561600a3e9ce6cc (diff) |
Fixing a bug creating floating point constants of type other
than double through the C bindings. Thanks to Tomas Lindquist
Olsen for reporting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r-- | include/llvm-c/Core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 9def515829..9b11df5193 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -289,6 +289,7 @@ int LLVMIsUndef(LLVMValueRef Val); LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N, int SignExtend); LLVMValueRef LLVMConstReal(LLVMTypeRef RealTy, double N); +LLVMValueRef LLVMConstRealOfString(LLVMTypeRef RealTy, const char *Text); /* Operations on composite constants */ LLVMValueRef LLVMConstString(const char *Str, unsigned Length, |