Skip to content

Commit

Permalink
[ELF] Remove a special case from ExprValue::getSectionOffset. NFC
Browse files Browse the repository at this point in the history
The special cases added by https://reviews.llvm.org/D42911
(defsym-reserved-syms.s) are unneeded after https://reviews.llvm.org/D66717
  • Loading branch information
MaskRay committed Sep 16, 2023
1 parent 5b7dfa9 commit 9eb1f2d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lld/ELF/LinkerScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ uint64_t ExprValue::getSecAddr() const {
}

uint64_t ExprValue::getSectionOffset() const {
// If the alignment is trivial, we don't have to compute the full
// value to know the offset. This allows this function to succeed in
// cases where the output section is not yet known.
if (alignment == 1 && !sec)
return val;
return getValue() - getSecAddr();
}

Expand Down

0 comments on commit 9eb1f2d

Please sign in to comment.