[DWARF parser] Simplify DWARFDebugAranges generation.
authorAlexey Samsonov <samsonov@google.com>
Mon, 28 Apr 2014 22:27:46 +0000 (22:27 +0000)
committerAlexey Samsonov <samsonov@google.com>
Mon, 28 Apr 2014 22:27:46 +0000 (22:27 +0000)
commitdc9a4f73917515d46c858fda38a88e1392060993
treed8177b2e68963a68a4b69d61cdfb36dd4c155c74
parent686bd64d0c269ff948c029d6bf94af7b87d00213
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARFDebugArangeSet.h
lib/DebugInfo/DWARFDebugAranges.cpp