Function rustc_codegen_llvm::llvm_::ffi::LLVMRustAddModuleFlagU32

source ·
pub unsafe extern "C" fn LLVMRustAddModuleFlagU32(
    M: &Module,
    merge_behavior: LLVMModFlagBehavior,
    name: *const c_char,
    value: u32
)
Expand description

Add LLVM module flags.

In order for Rust-C LTO to work, module flags must be compatible with Clang. What “compatible” means depends on the merge behaviors involved.