summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
diff options
context:
space:
mode:
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-07-26 22:48:52 +0000
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-07-26 22:48:52 +0000
commit9ea65082ff5a5fe187608783641d57afe8fcf18e (patch)
treed2f1cdeb2d792ce84d52f5bbca5ccd65a7b2260f /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
parent8da280f50b3a5783d2ecdfe2ba6be8505ab039db (diff)
downloadbcm5719-llvm-9ea65082ff5a5fe187608783641d57afe8fcf18e.tar.gz
bcm5719-llvm-9ea65082ff5a5fe187608783641d57afe8fcf18e.zip
[DWARF v5] Reposting r337981, which was reverted in r337997 due to a test failure in debuginfo_tests.
The test failure was caused by the compiler not emitting a __debug_ranges section with DWARF 4 and earlier when no ranges are needed. The test checks for the existence regardless. llvm-svn: 338081
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 5c3e6c865f5..32271a0ef24 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -426,8 +426,6 @@ void DwarfCompileUnit::addScopeRangeList(DIE &ScopeDIE,
} else {
addSectionLabel(ScopeDIE, dwarf::DW_AT_ranges, List.getSym(),
RangeSectionSym);
- if (DD->getDwarfVersion() >= 5)
- addRnglistsBase();
}
// Add the range list to the set of ranges to be emitted.
OpenPOWER on IntegriCloud