search for: diunit

Displaying 2 results from an estimated 2 matches for "diunit".

2011 Dec 19
2
[LLVMdev] DwarfDebug craziness
.... > if (DirName == CompilationDir) > DirName = ""; The last snippet weirds me out and breaks Rust debug information generation. Specifically, when creating a new compile unit, we see this: >CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) { > DICompileUnit DIUnit(N); > StringRef FN = DIUnit.getFilename(); > CompilationDir = DIUnit.getDirectory(); > unsigned ID = GetOrCreateSourceID(FN, CompilationDir); Note how CompilationDir is passed to GetOrCreateSourceID as DirName? That means that the map of compilation units is created entirely based on f...
2011 Dec 19
0
[LLVMdev] DwarfDebug craziness
...ally, 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, CompilationDir); > > Note how CompilationDir is passed to GetOrCreateSourceID as DirName? > That means that the map of compilation units i...