Only read *predecessor once so as to fix a theoretical issue where it changes
[llvm/stm8.git] / bindings / ocaml / bitreader / llvm_bitreader.ml
blob8b9d01d8fb010fcf014da4ddfa7308edfe08bbfd
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
17 = "llvm_get_module"
19 external parse_bitcode : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
20 = "llvm_parse_bitcode"