From b38ddb15dd9153b7887a67660d5ce1462dae4dea Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 21 Nov 2016 19:46:04 +0000 Subject: [PATCH] Move a function definition to SyntheticSections.cpp. This should have been moved along with r287554. llvm-svn: 287564 --- lld/ELF/OutputSections.cpp | 5 ----- lld/ELF/SyntheticSections.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index a198644..0fa5011 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -62,11 +62,6 @@ void OutputSectionBase::writeHeaderTo(typename ELFT::Shdr *Shdr) { Shdr->sh_name = ShName; } -template -void EhFrameHeader::addFde(uint32_t Pc, uint32_t FdeVA) { - Fdes.push_back({Pc, FdeVA}); -} - template static uint64_t getEntsize(uint32_t Type) { switch (Type) { case SHT_RELA: diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index dd5eb2b..e619770 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1449,6 +1449,11 @@ template size_t EhFrameHeader::getSize() const { } template +void EhFrameHeader::addFde(uint32_t Pc, uint32_t FdeVA) { + Fdes.push_back({Pc, FdeVA}); +} + +template VersionDefinitionSection::VersionDefinitionSection() : SyntheticSection(SHF_ALLOC, SHT_GNU_verdef, sizeof(uint32_t), ".gnu.version_d") {} -- 2.7.4