diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-04-25 21:30:03 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-04-25 21:30:03 +0000 |
commit | c87722ce4beb2975e86d7225c9cba1f600c266e9 (patch) | |
tree | 6479134c64c4e721cf2bd9f0c7f7ab9a66418181 /lib/DebugInfo/DWARFDebugAranges.cpp | |
parent | bfd66f57dab0ca828b4335d4be806ebd960200f9 (diff) | |
download | llvm-c87722ce4beb2975e86d7225c9cba1f600c266e9.tar.gz llvm-c87722ce4beb2975e86d7225c9cba1f600c266e9.tar.bz2 llvm-c87722ce4beb2975e86d7225c9cba1f600c266e9.tar.xz |
[DWARF parser] Cleanup code in DWARFDebugAranges.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugAranges.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugAranges.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFDebugAranges.cpp b/lib/DebugInfo/DWARFDebugAranges.cpp index 08864a0602..4d7bf306f6 100644 --- a/lib/DebugInfo/DWARFDebugAranges.cpp +++ b/lib/DebugInfo/DWARFDebugAranges.cpp @@ -10,6 +10,7 @@ #include "DWARFDebugAranges.h" #include "DWARFCompileUnit.h" #include "DWARFContext.h" +#include "DWARFDebugArangeSet.h" #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> @@ -70,6 +71,11 @@ void DWARFDebugAranges::generate(DWARFContext *CTX) { sortAndMinimize(); } +void DWARFDebugAranges::clear() { + Aranges.clear(); + ParsedCUOffsets.clear(); +} + void DWARFDebugAranges::appendRange(uint32_t CUOffset, uint64_t LowPC, uint64_t HighPC) { if (!Aranges.empty()) { |