2014-10-29 16:15:54 +08:00
|
|
|
(*===-- llvm_bitreader.ml - LLVM OCaml Interface --------------*- OCaml -*-===*
|
2007-12-11 08:20:48 +08:00
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
2007-12-30 06:59:10 +08:00
|
|
|
* This file is distributed under the University of Illinois Open Source
|
|
|
|
* License. See LICENSE.TXT for details.
|
2007-12-11 08:20:48 +08:00
|
|
|
*
|
|
|
|
*===----------------------------------------------------------------------===*)
|
|
|
|
|
2007-12-20 06:30:40 +08:00
|
|
|
exception Error of string
|
2007-12-11 08:20:48 +08:00
|
|
|
|
2014-10-29 16:15:54 +08:00
|
|
|
let () = Callback.register_exception "Llvm_bitreader.Error" (Error "")
|
2009-08-19 14:40:29 +08:00
|
|
|
|
2014-10-29 16:15:54 +08:00
|
|
|
external get_module
|
|
|
|
: Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
|
|
|
|
= "llvm_get_module"
|
|
|
|
external parse_bitcode
|
|
|
|
: Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
|
|
|
|
= "llvm_parse_bitcode"
|