diff options
| author | Haitao Li <lihaitao@gmail.com> | 2011-11-15 00:32:31 +0800 |
|---|---|---|
| committer | Haitao Li <lihaitao@gmail.com> | 2011-11-15 00:33:29 +0800 |
| commit | b8dd148444d47ba75e635c34025fc0662ca69db0 (patch) | |
| tree | 7f0a719838d1c5f6ddf82a87eb9bb9fd42183aa0 /src/comp/lib | |
| parent | 453168d91742777ee051ab4f8fe6f00c230190df (diff) | |
| download | rust-b8dd148444d47ba75e635c34025fc0662ca69db0.tar.gz rust-b8dd148444d47ba75e635c34025fc0662ca69db0.zip | |
rustllvm: Add a GetOrInsertFunction wrapper
Fixes issue #1161 Test-case-by: Brian Anderson <banderson@mozilla.com> Signed-off-by: Haitao Li <lihaitao@gmail.com>
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index f5b0fbeec8d..83edf143f33 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -448,6 +448,8 @@ native "cdecl" mod llvm = "rustllvm" { fn LLVMGetNextFunction(Fn: ValueRef) -> ValueRef; fn LLVMGetPreviousFunction(Fn: ValueRef) -> ValueRef; fn LLVMDeleteFunction(Fn: ValueRef); + fn LLVMGetOrInsertFunction(M: ModuleRef, Name: sbuf, FunctionTy: TypeRef) + -> ValueRef; fn LLVMGetIntrinsicID(Fn: ValueRef) -> uint; fn LLVMGetFunctionCallConv(Fn: ValueRef) -> uint; fn LLVMSetFunctionCallConv(Fn: ValueRef, CC: uint); |
