summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>2019-12-11 01:19:43 +0530
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>2019-12-11 01:20:40 +0530
commitd82b6ba21b32ddf00af886b9160feef88211773e (patch)
tree0ea1b71dbc743891f3800b8806b12f30883a6813 /llvm/lib/DebugInfo
parentbbaaeb409904e375d8c44223b37a71502192c17c (diff)
downloadbcm5719-llvm-d82b6ba21b32ddf00af886b9160feef88211773e.tar.gz
bcm5719-llvm-d82b6ba21b32ddf00af886b9160feef88211773e.zip
Revert "[DWARF5] Start emitting DW_AT_dwo_name when -gdwarf-5 is specified."
This reverts commit 6ef01588f4d75ef43da4ed2a37ba7a8b8daab259. Missing Differetial revision.
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
index 02f915bc6f7..4ccda628093 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
@@ -554,9 +554,7 @@ bool DWARFUnit::parseDWO() {
DWARFDie UnitDie = getUnitDIE();
if (!UnitDie)
return false;
- auto DWOFileName = getVersion() >= 5
- ? dwarf::toString(UnitDie.find(DW_AT_dwo_name))
- : dwarf::toString(UnitDie.find(DW_AT_GNU_dwo_name));
+ auto DWOFileName = dwarf::toString(UnitDie.find(DW_AT_GNU_dwo_name));
if (!DWOFileName)
return false;
auto CompilationDir = dwarf::toString(UnitDie.find(DW_AT_comp_dir));
OpenPOWER on IntegriCloud