Skip to content

Commit 7f458f8

Browse files
author
git apple-llvm automerger
committed
Merge commit '28b9cdd26073' from llvm.org/master into apple/master
2 parents 000b2ac + 28b9cdd commit 7f458f8

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,54 +2298,6 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
22982298
return enumerators_added;
22992299
}
23002300

2301-
#if defined(LLDB_CONFIGURATION_DEBUG) || defined(LLDB_CONFIGURATION_RELEASE)
2302-
2303-
class DIEStack {
2304-
public:
2305-
void Push(const DWARFDIE &die) { m_dies.push_back(die); }
2306-
2307-
void LogDIEs(Log *log) {
2308-
StreamString log_strm;
2309-
const size_t n = m_dies.size();
2310-
log_strm.Printf("DIEStack[%" PRIu64 "]:\n", (uint64_t)n);
2311-
for (size_t i = 0; i < n; i++) {
2312-
std::string qualified_name;
2313-
const DWARFDIE &die = m_dies[i];
2314-
die.GetQualifiedName(qualified_name);
2315-
log_strm.Printf("[%" PRIu64 "] 0x%8.8x: %s name='%s'\n", (uint64_t)i,
2316-
die.GetOffset(), die.GetTagAsCString(),
2317-
qualified_name.c_str());
2318-
}
2319-
log->PutCString(log_strm.GetData());
2320-
}
2321-
void Pop() { m_dies.pop_back(); }
2322-
2323-
class ScopedPopper {
2324-
public:
2325-
ScopedPopper(DIEStack &die_stack)
2326-
: m_die_stack(die_stack), m_valid(false) {}
2327-
2328-
void Push(const DWARFDIE &die) {
2329-
m_valid = true;
2330-
m_die_stack.Push(die);
2331-
}
2332-
2333-
~ScopedPopper() {
2334-
if (m_valid)
2335-
m_die_stack.Pop();
2336-
}
2337-
2338-
protected:
2339-
DIEStack &m_die_stack;
2340-
bool m_valid;
2341-
};
2342-
2343-
protected:
2344-
typedef std::vector<DWARFDIE> Stack;
2345-
Stack m_dies;
2346-
};
2347-
#endif
2348-
23492301
Function *DWARFASTParserClang::ParseFunctionFromDWARF(CompileUnit &comp_unit,
23502302
const DWARFDIE &die) {
23512303
DWARFRangeList func_ranges;

0 commit comments

Comments
 (0)