2013-11-01 08:26:01 +08:00
|
|
|
(*===-- llvm_bitreader.ml - LLVM OCaml Interface ----------------*- C++ -*-===*
|
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
|
|
|
|
2007-12-20 06:30:40 +08:00
|
|
|
external register_exns : exn -> unit = "llvm_register_bitreader_exns"
|
|
|
|
let _ = register_exns (Error "")
|
2007-12-11 08:20:48 +08:00
|
|
|
|
2010-03-03 07:59:00 +08:00
|
|
|
external get_module : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
|
|
|
|
= "llvm_get_module"
|
2009-08-19 14:40:29 +08:00
|
|
|
|
|
|
|
external parse_bitcode : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
|
2007-12-20 06:30:40 +08:00
|
|
|
= "llvm_parse_bitcode"
|