mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-11 15:26:40 +00:00
![Rafael Espindola](/assets/img/avatar_default.png)
Passing in a std::unique_ptr should help find errors when the module is used after being linked into another module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255842 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
547 B
OCaml
16 lines
547 B
OCaml
(*===-- llvm_linker.ml - LLVM OCaml Interface ------------------*- OCaml -*-===*
|
|
*
|
|
* The LLVM Compiler Infrastructure
|
|
*
|
|
* This file is distributed under the University of Illinois Open Source
|
|
* License. See LICENSE.TXT for details.
|
|
*
|
|
*===----------------------------------------------------------------------===*)
|
|
|
|
exception Error of string
|
|
|
|
let () = Callback.register_exception "Llvm_linker.Error" (Error "")
|
|
|
|
external link_modules' : Llvm.llmodule -> Llvm.llmodule -> unit
|
|
= "llvm_link_modules"
|