Table of Contents

Method CreateCompileUnit

Namespace
Ubiquity.NET.Llvm.DebugInfo
Assembly
Ubiquity.NET.Llvm.dll

CreateCompileUnit(SourceLanguage, string, LazyEncodedString?, bool, LazyEncodedString?, uint)

Creates a new DICompileUnit

public DICompileUnit CreateCompileUnit(SourceLanguage language, string sourceFilePath, LazyEncodedString? producer, bool optimized = false, LazyEncodedString? compilationFlags = null, uint runtimeVersion = 0)

Parameters

language SourceLanguage

SourceLanguage for the compilation unit

sourceFilePath string

Full path to the source file of this compilation unit

producer LazyEncodedString

Name of the application processing the compilation unit

optimized bool

Flag to indicate if the code in this compilation unit is optimized

compilationFlags LazyEncodedString

Additional tool specific flags

runtimeVersion uint

Runtime version

Returns

DICompileUnit

DICompileUnit

CreateCompileUnit(SourceLanguage, LazyEncodedString, LazyEncodedString, LazyEncodedString?, bool, LazyEncodedString?, uint, LazyEncodedString?, LazyEncodedString?)

Creates a new DICompileUnit

public DICompileUnit CreateCompileUnit(SourceLanguage language, LazyEncodedString fileName, LazyEncodedString fileDirectory, LazyEncodedString? producer, bool optimized, LazyEncodedString? compilationFlags, uint runtimeVersion, LazyEncodedString? sysRoot = null, LazyEncodedString? sdk = null)

Parameters

language SourceLanguage

SourceLanguage for the compilation unit

fileName LazyEncodedString

Name of the source file of this compilation unit (without any path)

fileDirectory LazyEncodedString

Path of the directory containing the file

producer LazyEncodedString

Name of the application processing the compilation unit

optimized bool

Flag to indicate if the code in this compilation unit is optimized

compilationFlags LazyEncodedString

Additional tool specific flags

runtimeVersion uint

Runtime version

sysRoot LazyEncodedString

System root for the debug info to use [Default:Empty]

sdk LazyEncodedString

SDK name for the debug record [Default:Empty]

Returns

DICompileUnit

DICompileUnit