[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
This commit is contained in:
Alexey Samsonov
2014-04-25 21:30:03 +00:00
parent bfd66f57da
commit c87722ce4b
3 changed files with 13 additions and 11 deletions

View File

@ -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()) {