From 28b9cdd26073c79be36c79476a9bacceca3d116f Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 8 Jan 2020 14:31:27 -0800 Subject: [PATCH] Delete dead code. https://reviews.llvm.org/D58856 --- .../SymbolFile/DWARF/DWARFASTParserClang.cpp | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index bb75c69..232063a 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -2298,54 +2298,6 @@ size_t DWARFASTParserClang::ParseChildEnumerators( return enumerators_added; } -#if defined(LLDB_CONFIGURATION_DEBUG) || defined(LLDB_CONFIGURATION_RELEASE) - -class DIEStack { -public: - void Push(const DWARFDIE &die) { m_dies.push_back(die); } - - void LogDIEs(Log *log) { - StreamString log_strm; - const size_t n = m_dies.size(); - log_strm.Printf("DIEStack[%" PRIu64 "]:\n", (uint64_t)n); - for (size_t i = 0; i < n; i++) { - std::string qualified_name; - const DWARFDIE &die = m_dies[i]; - die.GetQualifiedName(qualified_name); - log_strm.Printf("[%" PRIu64 "] 0x%8.8x: %s name='%s'\n", (uint64_t)i, - die.GetOffset(), die.GetTagAsCString(), - qualified_name.c_str()); - } - log->PutCString(log_strm.GetData()); - } - void Pop() { m_dies.pop_back(); } - - class ScopedPopper { - public: - ScopedPopper(DIEStack &die_stack) - : m_die_stack(die_stack), m_valid(false) {} - - void Push(const DWARFDIE &die) { - m_valid = true; - m_die_stack.Push(die); - } - - ~ScopedPopper() { - if (m_valid) - m_die_stack.Pop(); - } - - protected: - DIEStack &m_die_stack; - bool m_valid; - }; - -protected: - typedef std::vector Stack; - Stack m_dies; -}; -#endif - Function *DWARFASTParserClang::ParseFunctionFromDWARF(CompileUnit &comp_unit, const DWARFDIE &die) { DWARFRangeList func_ranges; -- 2.7.4