LLVMRustAddModuleFlagU32 in rustc_codegen_llvm::llvm::ffi - Rust
Description: Add LLVM module flags.

Skip to main content

## LLVMRustAddModuleFlagU32

# Function LLVMRustAddModuleFlagU32

Source

    pub(crate) 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.