[ELF] Rename SyntheticSection::empty to more appropriate isNeeded() with opposite...
authorFangrui Song <maskray@google.com>
Mon, 1 Apr 2019 08:16:08 +0000 (08:16 +0000)
committerFangrui Song <maskray@google.com>
Mon, 1 Apr 2019 08:16:08 +0000 (08:16 +0000)
commitd83fb24533e0cda7098f774398d190b92ce54d9e
tree486a218199322c35c6c3ac45ca87b9d984f64862
parent38a82413210009f6796249a63ae65c15bd548ddd
[ELF] Rename SyntheticSection::empty to more appropriate isNeeded() with opposite meaning

Summary:
Some synthetic sections can be empty while still being needed, thus they
can't be removed by removeUnusedSyntheticSections(). Rename this member
function to more appropriate isNeeded() with the opposite meaning.

No functional change intended.

Reviewers: ruiu, espindola

Reviewed By: ruiu

Subscribers: jhenderson, grimar, emaste, arichardson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59982

llvm-svn: 357377
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h
lld/ELF/Writer.cpp