]> git.proxmox.com Git - rustc.git/blame - src/rustllvm/README
New upstream version 1.12.0+dfsg1
[rustc.git] / src / rustllvm / README
CommitLineData
223e47cc
LB
1This directory currently contains some LLVM support code. This will generally
2be sent upstream to LLVM in time; for now it lives here.
5bcae85e
SL
3
4NOTE: the LLVM C++ ABI is subject to between-version breakage and must *never*
5be exposed to Rust. To allow for easy auditing of that, all Rust-exposed types
6must be typedef-ed as "LLVMXyz", or "LLVMRustXyz" if they were defined here.
7
8Functions that return a failure status and leave the error in
9the LLVM last error should return an LLVMRustResult rather than an
10int or anything to avoid confusion.
11
12When translating enums, add a single `Other` variant as the first
13one to allow for new variants to be added. It should abort when used
14as an input.
15
16All other types must not be typedef-ed as such.