llvm-project/llvm/bindings
Michal Gorny 83012b4721 [OCaml] Fix undefined reference to LLVMDumpType() with NDEBUG
Account for the possibility of LLVMDumpType() not being available with
NDEBUG in the OCaml bindings. If it is not built into LLVM, make
the dump function raise an exception.

Since rL293359, the dump functions are built only if either NDEBUG is
not defined, or LLVM_ENABLE_DUMP is defined. As a result, if the dump
functions are not built in LLVM, the dynamic OCaml libraries fail to
load due to undefined LLVMDumpType symbol.

Differential Revision: https://reviews.llvm.org/D35899

llvm-svn: 309321
2017-07-27 21:13:25 +00:00
..
go [Go] Subtypes function 2017-06-08 07:32:29 +00:00
ocaml [OCaml] Fix undefined reference to LLVMDumpType() with NDEBUG 2017-07-27 21:13:25 +00:00
python Deprecate a few C APIs. 2015-12-18 23:46:42 +00:00
LLVMBuild.txt
README.txt

README.txt

This directory contains bindings for the LLVM compiler infrastructure to allow
programs written in languages other than C or C++ to take advantage of the LLVM
infrastructure--for instance, a self-hosted compiler front-end.