Displaying 2 results from an estimated 2 matches for "at_compilation_dir".
2011 Dec 19
0
[LLVMdev] DwarfDebug craziness
...= CompilationDir)
>> DirName = "";
>
> The last snippet weirds me out and breaks Rust debug information
> generation. Specifically, when creating a new compile unit, we see
> this:
In DWARF, if the directory index is zero then it's assumed to be the
contents of AT_compilation_dir. This implements that optimization.
>> CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
>> DICompileUnit DIUnit(N);
>> StringRef FN = DIUnit.getFilename();
>> CompilationDir = DIUnit.getDirectory();
>> unsigned ID = GetOrCreateSourceID(FN, Comp...
2011 Dec 19
2
[LLVMdev] DwarfDebug craziness
>From DwarfDebug.cpp:
>/// GetOrCreateSourceID - Look up the source id with the given directory and
>/// source file names. If none currently exists, create a new id and insert it
>/// in the SourceIds map. This can update DirectoryNames and SourceFileNames
>/// maps as well.
>unsigned DwarfDebug::GetOrCreateSourceID(StringRef FileName,
>