Skip to content

Commit 639e799

Browse files
committedNov 25, 2017
Due to changes for DWZ I would need to update those such as renaming it to
SetFileOffset. Differential revision: https://reviews.llvm.org/D40458 llvm-svn: 318981
1 parent e36f5cb commit 639e799

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed
 

‎lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -1314,19 +1314,6 @@ bool DWARFDebugInfoEntry::AppendTypeName(SymbolFileDWARF *dwarf2Data,
13141314
return false;
13151315
}
13161316

1317-
bool DWARFDebugInfoEntry::Contains(const DWARFDebugInfoEntry *die) const {
1318-
if (die) {
1319-
const dw_offset_t die_offset = die->GetOffset();
1320-
if (die_offset > GetOffset()) {
1321-
const DWARFDebugInfoEntry *sibling = GetSibling();
1322-
assert(sibling); // TODO: take this out
1323-
if (sibling)
1324-
return die_offset < sibling->GetOffset();
1325-
}
1326-
}
1327-
return false;
1328-
}
1329-
13301317
//----------------------------------------------------------------------
13311318
// BuildAddressRangeTable
13321319
//----------------------------------------------------------------------

‎lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h

-14
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@ class DWARFDebugInfoEntry {
6060
m_empty_children(false), m_abbr_idx(0), m_has_children(false),
6161
m_tag(0) {}
6262

63-
void Clear() {
64-
m_offset = DW_INVALID_OFFSET;
65-
m_parent_idx = 0;
66-
m_sibling_idx = 0;
67-
m_empty_children = false;
68-
m_abbr_idx = 0;
69-
m_has_children = false;
70-
m_tag = 0;
71-
}
72-
73-
bool Contains(const DWARFDebugInfoEntry *die) const;
74-
7563
void BuildAddressRangeTable(SymbolFileDWARF *dwarf2Data,
7664
const DWARFCompileUnit *cu,
7765
DWARFDebugAranges *debug_aranges) const;
@@ -211,8 +199,6 @@ class DWARFDebugInfoEntry {
211199

212200
dw_offset_t GetOffset() const { return m_offset; }
213201

214-
void SetOffset(dw_offset_t offset) { m_offset = offset; }
215-
216202
bool HasChildren() const { return m_has_children; }
217203

218204
void SetHasChildren(bool b) { m_has_children = b; }

0 commit comments

Comments
 (0)