• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1(*===-- llvm_linker.mli - LLVM OCaml Interface -----------------*- OCaml -*-===*
2 *
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
6 *
7 *===----------------------------------------------------------------------===*)
8
9(** Linker.
10
11    This interface provides an OCaml API for LLVM bitcode linker,
12    the classes in the Linker library. *)
13
14exception Error of string
15
16(** [link_modules' dst src] links [src] into [dst], raising [Error]
17    if the linking fails. The src module is destroyed. *)
18val link_modules' : Llvm.llmodule -> Llvm.llmodule -> unit