mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
DebugInfo library: add support for fetching absolute paths to source files
(instead of basenames) from DWARF. Use this behavior in llvm-dwarfdump tool. Reviewed by Benjamin Kramer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -97,6 +97,13 @@ void DWARFCompileUnit::dump(raw_ostream &OS) {
|
||||
getCompileUnitDIE(false)->dump(OS, this, -1U);
|
||||
}
|
||||
|
||||
const char *DWARFCompileUnit::getCompilationDir() {
|
||||
extractDIEsIfNeeded(true);
|
||||
if (DieArray.empty())
|
||||
return 0;
|
||||
return DieArray[0].getAttributeValueAsString(this, DW_AT_comp_dir, 0);
|
||||
}
|
||||
|
||||
void DWARFCompileUnit::setDIERelations() {
|
||||
if (DieArray.empty())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user