• R
    Use llvm::Attribute API instead of "raw value" APIs, which will be removed in LLVM 4.0. · 30daedf6
    Robin Kruppe 提交于
    The librustc_llvm API remains mostly unchanged, except that llvm::Attribute is no longer a bitflag but represents only a *single* attribute.
    The ability to store many attributes in a small number of bits and modify them without interacting with LLVM is only used in rustc_trans::abi and closely related modules, and only attributes for function arguments are considered there.
    Thus rustc_trans::abi now has its own bit-packed representation of argument attributes, which are translated to rustc_llvm::Attribute when applying the attributes.
    30daedf6
rustllvm.h 3.8 KB