summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:19:34 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:19:34 +0000
commitf08b592390c745290100aff8757b00d2ee5db264 (patch)
treefba49d915e302424d6e2ae1703503137583898ce /lld/ELF/OutputSections.cpp
parent788fe38f993ab071d623e7ac227572cf920cd965 (diff)
downloadbcm5719-llvm-f08b592390c745290100aff8757b00d2ee5db264.tar.gz
bcm5719-llvm-f08b592390c745290100aff8757b00d2ee5db264.zip
[ELF] - Remove unnecessary template #2. NFC.
llvm-svn: 297718
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 8f6078fbb29..b7368f92d8c 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -330,18 +330,18 @@ static bool canMergeToProgbits(unsigned Type) {
Type == SHT_NOTE;
}
-template <class ELFT> static void reportDiscarded(InputSectionBase *IS) {
+static void reportDiscarded(InputSectionBase *IS) {
if (!Config->PrintGcSections)
return;
message("removing unused section from '" + IS->Name + "' in file '" +
- IS->getFile<ELFT>()->getName());
+ IS->File->getName());
}
template <class ELFT>
void OutputSectionFactory::addInputSec(InputSectionBase *IS,
StringRef OutsecName) {
if (!IS->Live) {
- reportDiscarded<ELFT>(IS);
+ reportDiscarded(IS);
return;
}
OpenPOWER on IntegriCloud