summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-12-16 17:10:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-12-16 17:10:17 +0000
commit7d4a5599daa214da4d7f01cf782acda9b6239acf (patch)
tree0e7d1651150497f1fea5b3b544a8a8f42f27b53a /llvm/lib
parentf9416af1917cbd55a6f4b9760948442fa7382adf (diff)
downloadbcm5719-llvm-7d4a5599daa214da4d7f01cf782acda9b6239acf.tar.gz
bcm5719-llvm-7d4a5599daa214da4d7f01cf782acda9b6239acf.zip
Revert "dwarfdump: Support/process relocations on a CU's abbrev_off"
Reverting because this breaks lld's gdb_index support - it's probably double counting the abbrev relocation offset. This reverts commit r289954. llvm-svn: 289961
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
index 8e5691aebab..2ddbc507ff6 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
@@ -87,10 +87,7 @@ bool DWARFUnit::getStringOffsetSectionItem(uint32_t Index,
bool DWARFUnit::extractImpl(DataExtractor debug_info, uint32_t *offset_ptr) {
Length = debug_info.getU32(offset_ptr);
Version = debug_info.getU16(offset_ptr);
- auto AI = InfoSection.Relocs.find(*offset_ptr);
uint64_t AbbrOffset = debug_info.getU32(offset_ptr);
- if (AI != InfoSection.Relocs.end())
- AbbrOffset += AI->second.second;
if (IndexEntry) {
if (AbbrOffset)
return false;
OpenPOWER on IntegriCloud