|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | The llvm_string_of_message function, called by llvm_raise, calls
LLVMDisposeMessage, which expects the message to be dynamically
allocated; it fails freeing the message otherwise. So always
dynamically allocate with LLVMCreateMessage.
Differential Revision: http://reviews.llvm.org/D18675
llvm-svn: 265116 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | This deprecates:
* LLVMParseBitcode
* LLVMParseBitcodeInContext
* LLVMGetBitcodeModuleInContext
* LLVMGetBitcodeModule
They are replaced with the functions with a 2 suffix which do not record
a diagnostic.
llvm-svn: 256065 | 
| | 
| 
| 
| | llvm-svn: 220898 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | In practice this means:
  * Always using -g flag.
  * Embedding -cclib -lstdc++ into the corresponding cma/cmxa file.
    This also moves -lstdc++ in a single place.
  * Using caml_named_value instead of a homegrown mechanism.
llvm-svn: 220843 | 
| | 
| 
| 
| | llvm-svn: 220766 | 
| | 
| 
| 
| 
| 
| 
| 
| | This commit only changes comments and documentation in OCaml bindings. The official name of the language is OCaml, and the usage is now consistent.
Patch by Peter Zotov
llvm-svn: 193836 | 
| | 
| 
| 
| | llvm-svn: 97609 | 
| | 
| 
| 
| 
| 
| | llvm_get_module_provider() was returning a value of the wrong type.
llvm-svn: 97290 | 
| | 
| 
| 
| | llvm-svn: 79410 | 
| | 
| 
| 
| | llvm-svn: 45452 | 
| | 
| 
| 
| | llvm-svn: 45451 | 
| | 
| 
| 
| | llvm-svn: 45425 | 
| | 
| 
| 
| | llvm-svn: 45335 | 
| | 
| 
| 
| 
| 
| | to exceptions rather than variants for error handling in Ocaml.
llvm-svn: 45226 | 
|  | Thompson. Usage should be something like this:
open Llvm
open Llvm_bitreader
match read_bitcode_file fn with
  | Bitreader_failure msg ->
      prerr_endline msg
  | Bitreader_success m -> 
      ...;
      dispose_module m
Compile with: ocamlc llvm.cma llvm_bitreader.cma
              ocamlopt llvm.cmxa llvm_bitreader.cmxa
llvm-svn: 44824 |