llvm.org GIT mirror llvm / 5146cbf
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 Daniel Jasper 4 years ago
3 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
17271727 func (b Builder) CreateLandingPad(t Type, personality Value, nclauses int, name string) (l Value) {
17281728 cname := C.CString(name)
17291729 defer C.free(unsafe.Pointer(cname))
1730 l.C = C.LLVMBuildLandingPad(b.C, t.C, personality.C, C.unsigned(nclauses), cname)
1730 l.C = C.LLVMBuildLandingPad(b.C, t.C, C.unsigned(nclauses), cname)
17311731 return l
17321732 }
17331733
17441744 CAMLprim LLVMValueRef llvm_build_landingpad(LLVMTypeRef Ty, LLVMValueRef PersFn,
17451745 value NumClauses, value Name,
17461746 value B) {
1747 return LLVMBuildLandingPad(Builder_val(B), Ty, PersFn, Int_val(NumClauses),
1747 return LLVMBuildLandingPad(Builder_val(B), Ty, Int_val(NumClauses),
17481748 String_val(Name));
17491749 }
17501750
26602660 LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch,
26612661 const char *Name);
26622662 LLVMValueRef LLVMBuildLandingPad(LLVMBuilderRef B, LLVMTypeRef Ty,
2663 LLVMValueRef PersFn, unsigned NumClauses,
2664 const char *Name);
2663 unsigned NumClauses, const char *Name);
26652664 LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn);
26662665 LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef);
26672666