Deleted Added
full compact
DWARFDebugArangeSet.h (256281) DWARFDebugArangeSet.h (263508)
1//===-- DWARFDebugArangeSet.h -----------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 30 unchanged lines hidden (view full) ---

39 struct Descriptor {
40 uint64_t Address;
41 uint64_t Length;
42 uint64_t getEndAddress() const { return Address + Length; }
43 };
44
45private:
46 typedef std::vector<Descriptor> DescriptorColl;
1//===-- DWARFDebugArangeSet.h -----------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 30 unchanged lines hidden (view full) ---

39 struct Descriptor {
40 uint64_t Address;
41 uint64_t Length;
42 uint64_t getEndAddress() const { return Address + Length; }
43 };
44
45private:
46 typedef std::vector<Descriptor> DescriptorColl;
47 typedef DescriptorColl::iterator DescriptorIter;
48 typedef DescriptorColl::const_iterator DescriptorConstIter;
49
50 uint32_t Offset;
51 Header HeaderData;
52 DescriptorColl ArangeDescriptors;
53
54public:
55 DWARFDebugArangeSet() { clear(); }
56 void clear();
47 typedef DescriptorColl::const_iterator DescriptorConstIter;
48
49 uint32_t Offset;
50 Header HeaderData;
51 DescriptorColl ArangeDescriptors;
52
53public:
54 DWARFDebugArangeSet() { clear(); }
55 void clear();
57 void compact();
58 bool extract(DataExtractor data, uint32_t *offset_ptr);
59 void dump(raw_ostream &OS) const;
60
61 uint32_t getCompileUnitDIEOffset() const { return HeaderData.CuOffset; }
56 bool extract(DataExtractor data, uint32_t *offset_ptr);
57 void dump(raw_ostream &OS) const;
58
59 uint32_t getCompileUnitDIEOffset() const { return HeaderData.CuOffset; }
62 uint32_t getOffsetOfNextEntry() const { return Offset + HeaderData.Length + 4; }
63 uint32_t findAddress(uint64_t address) const;
64 uint32_t getNumDescriptors() const { return ArangeDescriptors.size(); }
60 uint32_t getNumDescriptors() const { return ArangeDescriptors.size(); }
65 const struct Header &getHeader() const { return HeaderData; }
66 const Descriptor *getDescriptor(uint32_t i) const {
67 if (i < ArangeDescriptors.size())
68 return &ArangeDescriptors[i];
69 return NULL;
70 }
71};
72
73}
74
75#endif
61 const Descriptor *getDescriptor(uint32_t i) const {
62 if (i < ArangeDescriptors.size())
63 return &ArangeDescriptors[i];
64 return NULL;
65 }
66};
67
68}
69
70#endif