Skip to content

Commit 565b3b0

Browse files
committed
[ELF] Simplify InputSectionBase::getSize
1 parent e8fafaf commit 565b3b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ InputSectionBase::InputSectionBase(ObjFile<ELFT> &file,
103103
size_t InputSectionBase::getSize() const {
104104
if (auto *s = dyn_cast<SyntheticSection>(this))
105105
return s->getSize();
106-
if (compressed)
107-
return size;
108-
return content().size() - bytesDropped;
106+
return size - bytesDropped;
109107
}
110108

111109
template <class ELFT>

0 commit comments

Comments
 (0)