summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-02-02 01:07:50 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-02-02 01:07:50 +0000
commit931e121ad1ced8c656553e906929163d3f81662f (patch)
treeeb07de6cad34f4be9c1b37d18f699c802e18ff1c /llvm/include/llvm-c
parent4e7ff941f1f29efcd99e71073e4a22e1d921c00a (diff)
downloadbcm5719-llvm-931e121ad1ced8c656553e906929163d3f81662f.tar.gz
bcm5719-llvm-931e121ad1ced8c656553e906929163d3f81662f.zip
Fixing a bug creating floating point constants of type other
than double through the C bindings. Thanks to Tomas Lindquist Olsen for reporting it. llvm-svn: 46656
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 9def5158299..9b11df51931 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/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,
OpenPOWER on IntegriCloud