aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DebugInfo/DWARFDebugAranges.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-01 15:48:10 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-01 15:48:10 +0000
commitd1fc0f8d4ef32b4302338b8a3fd0d976e5bd8ae3 (patch)
treea5a02fe12f1f4bef782ba5c940982756689e5ea0 /lib/DebugInfo/DWARFDebugAranges.h
parente22c56d6d81b84d6f4ba24c2f5b0b203e7ddffe9 (diff)
downloadexternal_llvm-d1fc0f8d4ef32b4302338b8a3fd0d976e5bd8ae3.zip
external_llvm-d1fc0f8d4ef32b4302338b8a3fd0d976e5bd8ae3.tar.gz
external_llvm-d1fc0f8d4ef32b4302338b8a3fd0d976e5bd8ae3.tar.bz2
[DebugInfo] Remove unused functions from DWARFDebugAranges and fix code style.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191778 91177308-0d34-0410-b5e6-96231b3b80d8
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 1509ffa..a5da213 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;