xref: /aosp_15_r20/external/llvm/bindings/ocaml/bitreader/llvm_bitreader.ml (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker(*===-- llvm_bitreader.ml - LLVM OCaml Interface --------------*- OCaml -*-===*
2*9880d681SAndroid Build Coastguard Worker *
3*9880d681SAndroid Build Coastguard Worker *                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker *
5*9880d681SAndroid Build Coastguard Worker * This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker * License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker *
8*9880d681SAndroid Build Coastguard Worker *===----------------------------------------------------------------------===*)
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerexception Error of string
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerlet () = Callback.register_exception "Llvm_bitreader.Error" (Error "")
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerexternal get_module
15*9880d681SAndroid Build Coastguard Worker  : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
16*9880d681SAndroid Build Coastguard Worker  = "llvm_get_module"
17*9880d681SAndroid Build Coastguard Workerexternal parse_bitcode
18*9880d681SAndroid Build Coastguard Worker  : Llvm.llcontext -> Llvm.llmemorybuffer -> Llvm.llmodule
19*9880d681SAndroid Build Coastguard Worker  = "llvm_parse_bitcode"
20