2014-10-29 09:15:54 +01:00
|
|
|
(*===-- llvm_bitreader.ml - LLVM OCaml Interface --------------*- OCaml -*-===*
|
2007-12-11 01:20:48 +01:00
|
|
|
*
|
|
|
|
* The LLVM Compiler Infrastructure
|
|
|
|
*
|
2007-12-29 23:59:10 +01:00
|
|
|
* This file is distributed under the University of Illinois Open Source
|
|
|
|
* License. See LICENSE.TXT for details.
|
2007-12-11 01:20:48 +01:00
|
|
|
*
|
|
|
|
*===----------------------------------------------------------------------===*)
|
|
|
|
|
2007-12-19 23:30:40 +01:00
|
|
|
exception Error of string
|
2007-12-11 01:20:48 +01:00
|
|
|
|
2014-10-29 09:15:54 +01:00
|
|
|
let () = Callback.register_exception "Llvm_bitreader.Error" (Error "")
|
2009-08-19 08:40:29 +02:00
|
|
|
|
2014-10-29 09:15:54 +01: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"
|