rustc_codegen_llvm::llvm

Function LLVMRustAddModuleFlagU32

Source
pub unsafe extern "C" fn LLVMRustAddModuleFlagU32(
    M: &Module,
    MergeBehavior: ModuleFlagMergeBehavior,
    Name: *const c_char,
    NameLen: size_t,
    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.