File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1165,7 +1165,7 @@ class BinaryContext {
1165
1165
1166
1166
// / Return a dynamic relocation registered at a given \p Address, or nullptr
1167
1167
// / if there is no dynamic relocation at such address.
1168
- const Relocation *getDynamicRelocationAt (uint64_t Address);
1168
+ const Relocation *getDynamicRelocationAt (uint64_t Address) const ;
1169
1169
1170
1170
// / Remove registered relocation at a given \p Address.
1171
1171
bool removeRelocationAt (uint64_t Address);
Original file line number Diff line number Diff line change @@ -2100,8 +2100,9 @@ const Relocation *BinaryContext::getRelocationAt(uint64_t Address) const {
2100
2100
return Section->getRelocationAt (Address - Section->getAddress ());
2101
2101
}
2102
2102
2103
- const Relocation *BinaryContext::getDynamicRelocationAt (uint64_t Address) {
2104
- ErrorOr<BinarySection &> Section = getSectionForAddress (Address);
2103
+ const Relocation *
2104
+ BinaryContext::getDynamicRelocationAt (uint64_t Address) const {
2105
+ ErrorOr<const BinarySection &> Section = getSectionForAddress (Address);
2105
2106
if (!Section)
2106
2107
return nullptr ;
2107
2108
You can’t perform that action at this time.
0 commit comments