LLVMModuleCreateWithNameInContext

Function LLVMModuleCreateWithNameInContext 

Source
pub unsafe extern "C" fn LLVMModuleCreateWithNameInContext(
    ModuleID: *const c_char,
    C: LLVMContextRef,
) -> LLVMModuleRef
Expand description

Create a new, empty module in a specific context.

Every invocation should be paired with LLVMDisposeModule() or memory will be leaked.