1 (*===-- llvm_linker.mli - LLVM OCaml Interface -----------------*- OCaml -*-===*
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *===----------------------------------------------------------------------===*)
11 This interface provides an OCaml API for LLVM bitcode linker,
12 the classes in the Linker library. *)
14 exception Error
of string
16 (** [link_modules' dst src] links [src] into [dst], raising [Error]
17 if the linking fails. The src module is destroyed. *)
18 val link_modules'
: Llvm.llmodule
-> Llvm.llmodule
-> unit