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_provider
: Llvm.llcontext
-> Llvm.llmemorybuffer
->
18 = "llvm_get_module_provider"
20 external parse_bitcode
: Llvm.llcontext
-> Llvm.llmemorybuffer
-> Llvm.llmodule
21 = "llvm_parse_bitcode"