diff --git a/llvm/bindings/ocaml/linker/llvm_linker.ml b/llvm/bindings/ocaml/linker/llvm_linker.ml --- a/llvm/bindings/ocaml/linker/llvm_linker.ml +++ b/llvm/bindings/ocaml/linker/llvm_linker.ml @@ -10,5 +10,5 @@ let () = Callback.register_exception "Llvm_linker.Error" (Error "") -external link_modules' : Llvm.llmodule -> Llvm.llmodule -> unit - = "llvm_link_modules" +external link_modules : Llvm.llmodule -> Llvm.llmodule -> unit + = "llvm_link_modules" diff --git a/llvm/bindings/ocaml/linker/llvm_linker.mli b/llvm/bindings/ocaml/linker/llvm_linker.mli --- a/llvm/bindings/ocaml/linker/llvm_linker.mli +++ b/llvm/bindings/ocaml/linker/llvm_linker.mli @@ -13,6 +13,6 @@ exception Error of string -(** [link_modules' dst src] links [src] into [dst], raising [Error] +(** [link_modules dst src] links [src] into [dst], raising [Error] if the linking fails. The src module is destroyed. *) -val link_modules' : Llvm.llmodule -> Llvm.llmodule -> unit \ No newline at end of file +val link_modules : Llvm.llmodule -> Llvm.llmodule -> unit diff --git a/llvm/test/Bindings/OCaml/linker.ml b/llvm/test/Bindings/OCaml/linker.ml --- a/llvm/test/Bindings/OCaml/linker.ml +++ b/llvm/test/Bindings/OCaml/linker.ml @@ -43,18 +43,18 @@ let m1 = make_module "one" and m2 = make_module "two" in - link_modules' m1 m2; + link_modules m1 m2; dispose_module m1; let m1 = make_module "one" and m2 = make_module "two" in - link_modules' m1 m2; + link_modules m1 m2; dispose_module m1; let m1 = make_module "one" and m2 = make_module "one" in try - link_modules' m1 m2; + link_modules m1 m2; failwith "must raise" with Error _ -> dispose_module m1