rust/src/rustllvm
2016-12-19 12:23:56 -05:00
..
ArchiveWrapper.cpp [LLVM 4.0] Explicitly call constructor of 'llvm::Error' 2016-12-11 22:44:19 +13:00
llvm-auto-clean-trigger touch src/rustllvm/llvm-auto-clean-trigger 2016-12-19 12:23:56 -05:00
PassWrapper.cpp printf type correctness 2016-12-07 17:09:34 +01:00
README
rustllvm.h [LLVM 4.0] New bitcode headers and API 2016-12-04 11:14:08 -05:00
RustWrapper.cpp Update LLVM global variable debug info API for 4.0 2016-12-14 21:39:13 +13:00

This directory currently contains some LLVM support code. This will generally
be sent upstream to LLVM in time; for now it lives here.

NOTE: the LLVM C++ ABI is subject to between-version breakage and must *never*
be exposed to Rust. To allow for easy auditing of that, all Rust-exposed types
must be typedef-ed as "LLVMXyz", or "LLVMRustXyz" if they were defined here.

Functions that return a failure status and leave the error in
the LLVM last error should return an LLVMRustResult rather than an
int or anything to avoid confusion.

When translating enums, add a single `Other` variant as the first
one to allow for new variants to be added. It should abort when used
as an input.

All other types must not be typedef-ed as such.