1 (*===-- llvm_bitreader.ml - LLVM Ocaml Interface ----------------*- C++ -*-===*
3 * The LLVM Compiler Infrastructure
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===*)
11 exception Error
of string
13 external register_exns
: exn
-> unit = "llvm_register_bitreader_exns"
14 let _ = register_exns
(Error
"")
16 external get_module
: Llvm.llcontext
-> Llvm.llmemorybuffer
-> Llvm.llmodule
19 external parse_bitcode
: Llvm.llcontext
-> Llvm.llmemorybuffer
-> Llvm.llmodule
20 = "llvm_parse_bitcode"