Method LibLLVMDIBuilderCreateCompileUnit
LibLLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef, LibLLVMDwarfSourceLanguage, LLVMMetadataRef, String, size_t, Boolean, String, size_t, UInt32, String, size_t, LLVMDWARFEmissionKind, UInt32, Boolean, Boolean)
This is a clone of the official LLVM-C API that accepts all of the DWARF languages without filtering
Declaration
public static LLVMMetadataRef LibLLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Builder, LibLLVMDwarfSourceLanguage Lang, LLVMMetadataRef FileRef, string Producer, size_t ProducerLen, bool isOptimized, string Flags, size_t FlagsLen, uint RuntimeVer, string SplitName, size_t SplitNameLen, LLVMDWARFEmissionKind Kind, uint DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling)
Parameters
public static LLVMMetadataRef LibLLVMDIBuilderCreateCompileUnit(LLVMDIBuilderRef Builder, LibLLVMDwarfSourceLanguage Lang, LLVMMetadataRef FileRef, string Producer, size_t ProducerLen, bool isOptimized, string Flags, size_t FlagsLen, uint RuntimeVer, string SplitName, size_t SplitNameLen, LLVMDWARFEmissionKind Kind, uint DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling)
LLVMDIBuilderRef | Builder | LLVMDIBuilderRef to create the compile unit |
LibLLVMDwarfSourceLanguage | Lang | DWARF language for the compile unit |
LLVMMetadataRef | FileRef | LLVMMetadataRef for the file this unit represents |
String | Producer | Producer name |
size_t | ProducerLen | Length of the |
Boolean | isOptimized | Value to indicate whether the compilation unit is optimized or not |
String | Flags | Additional flags for the compilation unit |
size_t | FlagsLen | Length of the |
UInt32 | RuntimeVer | Runtime version (use 0 if not needed) |
String | SplitName | SplitName |
size_t | SplitNameLen | Length of the |
LLVMDWARFEmissionKind | Kind | Kind for the compilation unit |
UInt32 | DWOId | OId for the compilation unit |
Boolean | SplitDebugInlining | Value to indicate if the compilation will split debug inlining |
Boolean | DebugInfoForProfiling | Value to indicate if the debug info includes profiling |
Returns
LLVMMetadataRef | Handle for a new compile unit |