[lld] r287564 - Move a function definition to SyntheticSections.cpp.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 11:46:04 PST 2016
Author: ruiu
Date: Mon Nov 21 13:46:04 2016
New Revision: 287564
URL: http://llvm.org/viewvc/llvm-project?rev=287564&view=rev
Log:
Move a function definition to SyntheticSections.cpp.
This should have been moved along with r287554.
Modified:
lld/trunk/ELF/OutputSections.cpp
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=287564&r1=287563&r2=287564&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Nov 21 13:46:04 2016
@@ -62,11 +62,6 @@ void OutputSectionBase::writeHeaderTo(ty
Shdr->sh_name = ShName;
}
-template <class ELFT>
-void EhFrameHeader<ELFT>::addFde(uint32_t Pc, uint32_t FdeVA) {
- Fdes.push_back({Pc, FdeVA});
-}
-
template <class ELFT> static uint64_t getEntsize(uint32_t Type) {
switch (Type) {
case SHT_RELA:
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=287564&r1=287563&r2=287564&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Mon Nov 21 13:46:04 2016
@@ -1449,6 +1449,11 @@ template <class ELFT> size_t EhFrameHead
}
template <class ELFT>
+void EhFrameHeader<ELFT>::addFde(uint32_t Pc, uint32_t FdeVA) {
+ Fdes.push_back({Pc, FdeVA});
+}
+
+template <class ELFT>
VersionDefinitionSection<ELFT>::VersionDefinitionSection()
: SyntheticSection<ELFT>(SHF_ALLOC, SHT_GNU_verdef, sizeof(uint32_t),
".gnu.version_d") {}
More information about the llvm-commits
mailing list