summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugAranges.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DebugInfo/DWARFDebugAranges.h')
-rw-r--r--lib/DebugInfo/DWARFDebugAranges.h31
1 files changed, 8 insertions, 23 deletions
diff --git a/lib/DebugInfo/DWARFDebugAranges.h b/lib/DebugInfo/DWARFDebugAranges.h
index 1509ffad41..a5da2137ef 100644
--- a/lib/DebugInfo/DWARFDebugAranges.h
+++ b/lib/DebugInfo/DWARFDebugAranges.h
@@ -65,30 +65,15 @@ public:
Aranges.clear();
ParsedCUOffsets.clear();
}
- bool allRangesAreContiguous(uint64_t& LoPC, uint64_t& HiPC) const;
- bool getMaxRange(uint64_t& LoPC, uint64_t& HiPC) const;
- bool extract(DataExtractor debug_aranges_data);
- bool generate(DWARFContext *ctx);
-
- // Use append range multiple times and then call sort
- void appendRange(uint32_t cu_offset, uint64_t low_pc, uint64_t high_pc);
- void sort(bool minimize, uint32_t n);
-
- const Range *rangeAtIndex(uint32_t idx) const {
- if (idx < Aranges.size())
- return &Aranges[idx];
- return NULL;
- }
+ void extract(DataExtractor DebugArangesData);
+ void generate(DWARFContext *CTX);
+
+ // Use appendRange multiple times and then call sort.
+ void appendRange(uint32_t CUOffset, uint64_t LowPC, uint64_t HighPC);
+ void sort(bool Minimize, uint32_t OverlapSize);
+
void dump(raw_ostream &OS) const;
- uint32_t findAddress(uint64_t address) const;
- bool isEmpty() const { return Aranges.empty(); }
- uint32_t getNumRanges() const { return Aranges.size(); }
-
- uint32_t offsetAtIndex(uint32_t idx) const {
- if (idx < Aranges.size())
- return Aranges[idx].Offset;
- return -1U;
- }
+ uint32_t findAddress(uint64_t Address) const;
typedef std::vector<Range> RangeColl;
typedef RangeColl::const_iterator RangeCollIterator;