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 | e8ad351dba88b3deca0e0075fe1bc0b3742dc27f (patch) | |
tree | a37067a905622f829f744199fd5a0f2ba8cdb41e /include/llvm-c | |
parent | 83c6afc07c1c867e12fa7ec4f08175e0e18c92da (diff) | |
download | external_llvm-e8ad351dba88b3deca0e0075fe1bc0b3742dc27f.zip external_llvm-e8ad351dba88b3deca0e0075fe1bc0b3742dc27f.tar.gz external_llvm-e8ad351dba88b3deca0e0075fe1bc0b3742dc27f.tar.bz2 |
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 9def515..9b11df5 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, |