LLVMModuleCreateWithName

Function LLVMModuleCreateWithName 

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

Create a new, empty module in the global context.

This is equivalent to calling LLVMModuleCreateWithNameInContext with LLVMGetGlobalContext() as the context parameter.

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