ΒΆLLVMModuleRef LLVMModuleCreateWithName(
    const char* ModuleID)

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.

Declared at: llvm/include/llvm-c/Core.h:685

Parameters

const char* ModuleID