1 (*===-- llvm_bitwriter.mli - LLVM Ocaml Interface ---------------*- C++ -*-===*
3 * The LLVM Compiler Infrastructure
5 * This file was developed by Gordon Henriksen and is distributed under the
6 * University of Illinois Open Source License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===
10 * This interface provides an ocaml API for the LLVM bitcode writer, the
11 * classes in the Bitwriter library.
13 *===----------------------------------------------------------------------===*)
16 (** [write_bitcode_file m path] writes the bitcode for module [m] to the file at
17 [path]. Returns [true] if successful, [false] otherwise. **)
18 external write_bitcode_file : Llvm.llmodule -> string -> bool
19 = "llvm_write_bitcode_file"