DWARFDebugRangeList: make the list of entries available to clients.
authorFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 23:30:07 +0000 (23:30 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 13 Mar 2015 23:30:07 +0000 (23:30 +0000)
For users like llvm-dsymutil that want to have access to the encoded
debug_ranges entries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232230 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h

index 4ee3bdad329999d434ba12568f6c5eb3882216f7..c930bd603d4d570b91ae31dd8b0e786e17751329 100644 (file)
@@ -66,6 +66,8 @@ public:
   void clear();
   void dump(raw_ostream &OS) const;
   bool extract(DataExtractor data, uint32_t *offset_ptr);
+  const std::vector<RangeListEntry> &getEntries() { return Entries; }
+
   /// getAbsoluteRanges - Returns absolute address ranges defined by this range
   /// list. Has to be passed base address of the compile unit referencing this
   /// range list.