File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
include/llvm/DebugInfo/DWARF Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class DWARFContext;
21
21
class DWARFDebugAranges {
22
22
public:
23
23
void generate (DWARFContext *CTX);
24
- uint32_t findAddress (uint64_t Address) const ;
24
+ uint64_t findAddress (uint64_t Address) const ;
25
25
26
26
private:
27
27
void clear ();
@@ -33,7 +33,7 @@ class DWARFDebugAranges {
33
33
34
34
struct Range {
35
35
explicit Range (uint64_t LowPC = -1ULL , uint64_t HighPC = -1ULL ,
36
- uint32_t CUOffset = -1U )
36
+ uint64_t CUOffset = -1ULL )
37
37
: LowPC(LowPC), Length(HighPC - LowPC), CUOffset(CUOffset) {}
38
38
39
39
void setHighPC (uint64_t HighPC) {
@@ -54,8 +54,8 @@ class DWARFDebugAranges {
54
54
}
55
55
56
56
uint64_t LowPC; // / Start of address range.
57
- uint32_t Length; // / End of address range (not including this address).
58
- uint32_t CUOffset; // / Offset of the compile unit or die.
57
+ uint64_t Length; // / End of address range (not including this address).
58
+ uint64_t CUOffset; // / Offset of the compile unit or die.
59
59
};
60
60
61
61
struct RangeEndpoint {
Original file line number Diff line number Diff line change @@ -113,10 +113,10 @@ void DWARFDebugAranges::construct() {
113
113
Endpoints.shrink_to_fit ();
114
114
}
115
115
116
- uint32_t DWARFDebugAranges::findAddress (uint64_t Address) const {
116
+ uint64_t DWARFDebugAranges::findAddress (uint64_t Address) const {
117
117
RangeCollIterator It =
118
118
partition_point (Aranges, [=](Range R) { return R.HighPC () <= Address; });
119
119
if (It != Aranges.end () && It->LowPC <= Address)
120
120
return It->CUOffset ;
121
- return -1U ;
121
+ return -1ULL ;
122
122
}
You can’t perform that action at this time.
0 commit comments