Remove the build_unwind function from the OCaml bindings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2011-08-10 01:10:17 +00:00
parent 59c1ba96ba
commit e1686b08e4
4 changed files with 0 additions and 20 deletions

View File

@ -820,7 +820,6 @@ external add_destination : llvalue -> llbasicblock -> unit
external build_invoke : llvalue -> llvalue array -> llbasicblock -> external build_invoke : llvalue -> llvalue array -> llbasicblock ->
llbasicblock -> string -> llbuilder -> llvalue llbasicblock -> string -> llbuilder -> llvalue
= "llvm_build_invoke_bc" "llvm_build_invoke_nat" = "llvm_build_invoke_bc" "llvm_build_invoke_nat"
external build_unwind : llbuilder -> llvalue = "llvm_build_unwind"
external build_unreachable : llbuilder -> llvalue = "llvm_build_unreachable" external build_unreachable : llbuilder -> llvalue = "llvm_build_unreachable"
(*--... Arithmetic .........................................................--*) (*--... Arithmetic .........................................................--*)

View File

@ -1616,12 +1616,6 @@ val build_invoke : llvalue -> llvalue array -> llbasicblock ->
llbasicblock -> string -> llbuilder -> llvalue llbasicblock -> string -> llbuilder -> llvalue
(** [build_unwind b] creates an
[unwind]
instruction at the position specified by the instruction builder [b].
See the method [llvm::LLVMBuilder::CreateUnwind]. *)
val build_unwind : llbuilder -> llvalue
(** [build_unreachable b] creates an (** [build_unreachable b] creates an
[unreachable] [unreachable]
instruction at the position specified by the instruction builder [b]. instruction at the position specified by the instruction builder [b].

View File

@ -1212,11 +1212,6 @@ CAMLprim LLVMValueRef llvm_build_invoke_bc(value Args[], int NumArgs) {
Args[4], Args[5]); Args[4], Args[5]);
} }
/* llbuilder -> llvalue */
CAMLprim LLVMValueRef llvm_build_unwind(value B) {
return LLVMBuildUnwind(Builder_val(B));
}
/* llbuilder -> llvalue */ /* llbuilder -> llvalue */
CAMLprim LLVMValueRef llvm_build_unreachable(value B) { CAMLprim LLVMValueRef llvm_build_unreachable(value B) {
return LLVMBuildUnreachable(Builder_val(B)); return LLVMBuildUnreachable(Builder_val(B));

View File

@ -898,14 +898,6 @@ let test_builder () =
ignore (build_invoke fn [| p1; p2 |] bb04 bb00 "build_invoke" b) ignore (build_invoke fn [| p1; p2 |] bb04 bb00 "build_invoke" b)
end; end;
group "unwind"; begin
(* RUN: grep {unwind} < %t.ll
*)
let bb05 = append_block context "Bb05" fn in
let b = builder_at_end context bb05 in
ignore (build_unwind b)
end;
group "unreachable"; begin group "unreachable"; begin
(* RUN: grep {unreachable} < %t.ll (* RUN: grep {unreachable} < %t.ll
*) *)