[PATCH] D59052: ELF: Remove dead code. NFCI.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 14:24:52 PST 2019
pcc created this revision.
pcc added a reviewer: ruiu.
Herald added subscribers: MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
The Live bit is already set to false by SectionBase.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D59052
Files:
lld/ELF/OutputSections.cpp
Index: lld/ELF/OutputSections.cpp
===================================================================
--- lld/ELF/OutputSections.cpp
+++ lld/ELF/OutputSections.cpp
@@ -69,9 +69,7 @@
OutputSection::OutputSection(StringRef Name, uint32_t Type, uint64_t Flags)
: BaseCommand(OutputSectionKind),
SectionBase(Output, Name, Flags, /*Entsize*/ 0, /*Alignment*/ 1, Type,
- /*Info*/ 0, /*Link*/ 0) {
- Live = false;
-}
+ /*Info*/ 0, /*Link*/ 0) {}
// We allow sections of types listed below to merged into a
// single progbits section. This is typically done by linker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59052.189595.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190306/0a56f9f2/attachment.bin>
More information about the llvm-commits
mailing list