2013-11-03 16:27:32 +08:00
|
|
|
(*===-- llvm_linker.mli - LLVM OCaml Interface -----------------*- OCaml -*-===*
|
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
|
|
|
* This file is distributed under the University of Illinois Open Source
|
|
|
|
* License. See LICENSE.TXT for details.
|
|
|
|
*
|
|
|
|
*===----------------------------------------------------------------------===*)
|
|
|
|
|
|
|
|
(** Linker.
|
|
|
|
|
|
|
|
This interface provides an OCaml API for LLVM bitcode linker,
|
|
|
|
the classes in the Linker library. *)
|
|
|
|
|
|
|
|
exception Error of string
|
|
|
|
|
2015-12-17 07:16:33 +08:00
|
|
|
(** [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
|