From fee0ee24c8b2488be0d7c34e33fca4ddf385b18a Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 28 Apr 2014 22:27:46 +0000 Subject: [DWARF parser] Simplify DWARFDebugAranges generation. There is no need to keep the whole contents of .debug_aranges section in memory when we build address ranges table. Memory optimization that used to be in this code (precalculate the size of vector of ranges before filling it) is not really needed - later we will compact and resize this vector anyway. llvm-svn: 207457 --- llvm/lib/DebugInfo/DWARFDebugArangeSet.h | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/DebugInfo/DWARFDebugArangeSet.h') diff --git a/llvm/lib/DebugInfo/DWARFDebugArangeSet.h b/llvm/lib/DebugInfo/DWARFDebugArangeSet.h index c18b3c5e504..d6c2d8b27c5 100644 --- a/llvm/lib/DebugInfo/DWARFDebugArangeSet.h +++ b/llvm/lib/DebugInfo/DWARFDebugArangeSet.h @@ -63,7 +63,6 @@ public: return desc_iterator_range(ArangeDescriptors.begin(), ArangeDescriptors.end()); } - uint32_t getNumDescriptors() const { return ArangeDescriptors.size(); } }; } -- cgit v1.2.3