summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-06-18 11:51:16 +0000
committerDaniel Jasper <djasper@google.com>2015-06-18 11:51:16 +0000
commit5146cbf940516fa47410d9b669a3981a596f853b (patch)
tree9ff89c43284011d247a994420eb35a01ef10305a /bindings
parent6c24289bef64ba9018f84d51034b31915fca89ab (diff)
Update LLVM bindings after r239940. Apparently these aren't included in
any tests and I even don't know how to run the tests. This seems like a minimal change to make them work again, although I can't really verify at this point. Additionally, it probably makes sense to propagate the personality parameter removal further. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240010 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/go/llvm/ir.go2
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go
index 1f00cd58473..80f7798ea06 100644
--- a/bindings/go/llvm/ir.go
+++ b/bindings/go/llvm/ir.go
@@ -1728,7 +1728,7 @@ func (b Builder) CreatePtrDiff(lhs, rhs Value, name string) (v Value) {
func (b Builder) CreateLandingPad(t Type, personality Value, nclauses int, name string) (l Value) {
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))
- l.C = C.LLVMBuildLandingPad(b.C, t.C, personality.C, C.unsigned(nclauses), cname)
+ l.C = C.LLVMBuildLandingPad(b.C, t.C, C.unsigned(nclauses), cname)
return l
}
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index 3889f9276cc..26835d01559 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -1745,7 +1745,7 @@ CAMLprim LLVMValueRef llvm_build_invoke_bc(value Args[], int NumArgs) {
CAMLprim LLVMValueRef llvm_build_landingpad(LLVMTypeRef Ty, LLVMValueRef PersFn,
value NumClauses, value Name,
value B) {
- return LLVMBuildLandingPad(Builder_val(B), Ty, PersFn, Int_val(NumClauses),
+ return LLVMBuildLandingPad(Builder_val(B), Ty, Int_val(NumClauses),
String_val(Name));
}