diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-03-14 09:14:28 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-03-14 09:14:28 +0000 |
commit | 788fe38f993ab071d623e7ac227572cf920cd965 (patch) | |
tree | aab03b5fb62e37b17d0d163a5058c9de2c81eca9 /lld/ELF/OutputSections.cpp | |
parent | 916b1ba617dbc692d67286f82fa2b19d67c3c167 (diff) | |
download | bcm5719-llvm-788fe38f993ab071d623e7ac227572cf920cd965.tar.gz bcm5719-llvm-788fe38f993ab071d623e7ac227572cf920cd965.zip |
[ELF] - Remove unnecessary template. NFC.
llvm-svn: 297717
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index c73d9b461a1..8f6078fbb29 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -249,8 +249,7 @@ template <class ELFT> void OutputSection::writeTo(uint8_t *Buf) { 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(InputSectionBase *IS, } 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)) |