[lld] r261951 - Remove redundant template instantiations.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 25 17:30:36 PST 2016


Author: ruiu
Date: Thu Feb 25 19:30:35 2016
New Revision: 261951

URL: http://llvm.org/viewvc/llvm-project?rev=261951&view=rev
Log:
Remove redundant template instantiations.

This class is used only in this translation unit, so no need
to instantiate them explicitly.

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=261951&r1=261950&r2=261951&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Thu Feb 25 19:30:35 2016
@@ -443,8 +443,3 @@ template bool LinkerScript::shouldKeep(I
 template bool LinkerScript::shouldKeep(InputSectionBase<ELF32BE> *);
 template bool LinkerScript::shouldKeep(InputSectionBase<ELF64LE> *);
 template bool LinkerScript::shouldKeep(InputSectionBase<ELF64BE> *);
-
-template bool SectionRule::match(InputSectionBase<ELF32LE> *);
-template bool SectionRule::match(InputSectionBase<ELF32BE> *);
-template bool SectionRule::match(InputSectionBase<ELF64LE> *);
-template bool SectionRule::match(InputSectionBase<ELF64BE> *);




More information about the llvm-commits mailing list