aboutsummaryrefslogtreecommitdiff
path: root/reloc_elf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'reloc_elf.cc')
-rw-r--r--reloc_elf.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/reloc_elf.cc b/reloc_elf.cc
index d4857e8..a7d1b38 100644
--- a/reloc_elf.cc
+++ b/reloc_elf.cc
@@ -89,7 +89,7 @@ rva_t RelocReaderElf::GetRelocationTarget(elf::Elf64_Rel rel) const {
return kInvalidRva;
}
-base::Optional<Reference> RelocReaderElf::GetNext() {
+absl::optional<Reference> RelocReaderElf::GetNext() {
offset_t cur_entry_size = cur_section_dimensions_->entry_size;
offset_t cur_section_dimensions_end =
base::checked_cast<offset_t>(cur_section_dimensions_->region.hi());
@@ -98,12 +98,12 @@ base::Optional<Reference> RelocReaderElf::GetNext() {
while (cursor_ >= cur_section_dimensions_end) {
++cur_section_dimensions_;
if (cur_section_dimensions_ == reloc_section_dimensions_.end())
- return base::nullopt;
+ return absl::nullopt;
cur_entry_size = cur_section_dimensions_->entry_size;
cursor_ =
base::checked_cast<offset_t>(cur_section_dimensions_->region.offset);
if (cursor_ + cur_entry_size > hi_)
- return base::nullopt;
+ return absl::nullopt;
cur_section_dimensions_end =
base::checked_cast<offset_t>(cur_section_dimensions_->region.hi());
}
@@ -132,7 +132,7 @@ base::Optional<Reference> RelocReaderElf::GetNext() {
cursor_ += cur_entry_size;
return Reference{location, target};
}
- return base::nullopt;
+ return absl::nullopt;
}
/******** RelocWriterElf ********/