summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:14:28 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:14:28 +0000
commit788fe38f993ab071d623e7ac227572cf920cd965 (patch)
treeaab03b5fb62e37b17d0d163a5058c9de2c81eca9 /lld/ELF/OutputSections.cpp
parent916b1ba617dbc692d67286f82fa2b19d67c3c167 (diff)
downloadbcm5719-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.cpp5
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))
OpenPOWER on IntegriCloud