[lld] r297717 - [ELF] - Remove unnecessary template. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 02:14:29 PDT 2017
Author: grimar
Date: Tue Mar 14 04:14:28 2017
New Revision: 297717
URL: http://llvm.org/viewvc/llvm-project?rev=297717&view=rev
Log:
[ELF] - Remove unnecessary template. NFC.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=297717&r1=297716&r2=297717&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Mar 14 04:14:28 2017
@@ -249,8 +249,7 @@ template <class ELFT> void OutputSection
Script<ELFT>::X->writeDataBytes(this->Name, Buf);
}
-template <class ELFT>
-static typename ELFT::uint getOutFlags(InputSectionBase *S) {
+static uint64_t getOutFlags(InputSectionBase *S) {
return S->Flags & ~SHF_GROUP & ~SHF_COMPRESSED;
}
@@ -347,7 +346,7 @@ void OutputSectionFactory::addInputSec(I
}
SectionKey Key = createKey<ELFT>(IS, OutsecName);
- uint64_t Flags = getOutFlags<ELFT>(IS);
+ uint64_t Flags = getOutFlags(IS);
OutputSection *&Sec = Map[Key];
if (Sec) {
if (getIncompatibleFlags(Sec->Flags) != getIncompatibleFlags(IS->Flags))
More information about the llvm-commits
mailing list