summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugAranges.h
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.h
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.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugAranges.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugAranges.h b/llvm/lib/DebugInfo/DWARFDebugAranges.h
index 35ad8e53d63..46b8bba6f4c 100644
--- a/llvm/lib/DebugInfo/DWARFDebugAranges.h
+++ b/llvm/lib/DebugInfo/DWARFDebugAranges.h
@@ -10,9 +10,8 @@
#ifndef LLVM_DEBUGINFO_DWARFDEBUGARANGES_H
#define LLVM_DEBUGINFO_DWARFDEBUGARANGES_H
-#include "DWARFDebugArangeSet.h"
#include "llvm/ADT/DenseSet.h"
-#include <list>
+#include "llvm/Support/DataExtractor.h"
namespace llvm {
@@ -20,20 +19,15 @@ class DWARFContext;
class DWARFDebugAranges {
public:
- void clear() {
- Aranges.clear();
- ParsedCUOffsets.clear();
- }
-
void generate(DWARFContext *CTX);
-
- // Use appendRange multiple times and then call sortAndMinimize.
- void appendRange(uint32_t CUOffset, uint64_t LowPC, uint64_t HighPC);
-
uint32_t findAddress(uint64_t Address) const;
private:
+ void clear();
void extract(DataExtractor DebugArangesData);
+
+ // Use appendRange multiple times and then call sortAndMinimize.
+ void appendRange(uint32_t CUOffset, uint64_t LowPC, uint64_t HighPC);
void sortAndMinimize();
struct Range {
OpenPOWER on IntegriCloud