[lld] r286588 - [ELF] Set 'Live = true' in SyntheticSection ctor. NFC.
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 05:03:59 PST 2016
Author: evgeny777
Date: Fri Nov 11 07:03:58 2016
New Revision: 286588
URL: http://llvm.org/viewvc/llvm-project?rev=286588&view=rev
Log:
[ELF] Set 'Live = true' in SyntheticSection ctor. NFC.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
lld/trunk/ELF/SyntheticSections.h
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=286588&r1=286587&r2=286588&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Fri Nov 11 07:03:58 2016
@@ -617,7 +617,6 @@ template <class ELFT>
GotPltSection<ELFT>::GotPltSection()
: SyntheticSection<ELFT>(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
Target->GotPltEntrySize, ".got.plt") {
- this->Live = true;
}
template <class ELFT> void GotPltSection<ELFT>::addEntry(SymbolBody &Sym) {
Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=286588&r1=286587&r2=286588&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Fri Nov 11 07:03:58 2016
@@ -66,7 +66,9 @@ public:
SyntheticSection(uintX_t Flags, uint32_t Type, uintX_t Addralign,
StringRef Name)
: InputSection<ELFT>(Flags, Type, Addralign, ArrayRef<uint8_t>(), Name,
- InputSectionData::Synthetic) {}
+ InputSectionData::Synthetic) {
+ this->Live = true;
+ }
virtual void writeTo(uint8_t *Buf) = 0;
virtual size_t getSize() const { return this->Data.size(); }
More information about the llvm-commits
mailing list