summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugAranges.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-25 21:30:03 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-25 21:30:03 +0000
commit001ecd9aa988f88d66ca9fb9e15dc0bfe04ea40b (patch)
tree7153f9ea7e192eabcf8ad3b651345f4a74d6c2ec /llvm/lib/DebugInfo/DWARFDebugAranges.cpp
parentb9f07e3dbc741b3326a3c22f6b255dc350ccb6df (diff)
downloadbcm5719-llvm-001ecd9aa988f88d66ca9fb9e15dc0bfe04ea40b.tar.gz
bcm5719-llvm-001ecd9aa988f88d66ca9fb9e15dc0bfe04ea40b.zip
[DWARF parser] Cleanup code in DWARFDebugAranges.
No functionality change. llvm-svn: 207276
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugAranges.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugAranges.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugAranges.cpp b/llvm/lib/DebugInfo/DWARFDebugAranges.cpp
index 08864a06021..4d7bf306f6c 100644
--- a/llvm/lib/DebugInfo/DWARFDebugAranges.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud