search for: compilationdir

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

2011 Dec 19
2
[LLVMdev] DwarfDebug craziness
...StringRef DirName) { > // If FE did not provide a file name, then assume stdin. > if (FileName.empty()) > return GetOrCreateSourceID("<stdin>", StringRef()); > > // TODO: this might not belong here. See if we can factor this better. > 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 = DIUni...
2011 Dec 19
0
[LLVMdev] DwarfDebug craziness
...>> // If FE did not provide a file name, then assume stdin. >> if (FileName.empty()) >> return GetOrCreateSourceID("<stdin>", StringRef()); >> >> // TODO: this might not belong here. See if we can factor this better. >> 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: In DWARF, if the directory index is zero then it's assumed to be the contents of AT_compilation_d...