rust/src/rustllvm
Dylan McKay e080804f72 Update LLVM global variable debug info API for 4.0
This teaches Rust about an LLVM 4.0 API change for creating debug info
for global variables.

This change was made in upstream LLVM patch https://reviews.llvm.org/D20147

This is almost 1:1 copy of how clang did it in http://reviews.llvm.org/D20415
2016-12-14 21:39:13 +13:00
..
ArchiveWrapper.cpp [LLVM 4.0] Explicitly call constructor of 'llvm::Error' 2016-12-11 22:44:19 +13:00
llvm-auto-clean-trigger LLVM: update trigger 2016-12-08 16:45:18 +03:00
PassWrapper.cpp printf type correctness 2016-12-07 17:09:34 +01:00
README audit LLVM C++ types in ArchiveWrapper and PassWrapper 2016-08-03 15:08:47 +03:00
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.