[lld] r259276 - Move template instantiations to end of the file.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 15:59:16 PST 2016


Author: ruiu
Date: Fri Jan 29 17:59:15 2016
New Revision: 259276

URL: http://llvm.org/viewvc/llvm-project?rev=259276&view=rev
Log:
Move template instantiations to end of the file.

Modified:
    lld/trunk/ELF/Target.cpp

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=259276&r1=259275&r2=259276&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Fri Jan 29 17:59:15 2016
@@ -76,11 +76,6 @@ template <class ELFT> bool isGnuIFunc(co
   return false;
 }
 
-template bool isGnuIFunc<ELF32LE>(const SymbolBody &S);
-template bool isGnuIFunc<ELF32BE>(const SymbolBody &S);
-template bool isGnuIFunc<ELF64LE>(const SymbolBody &S);
-template bool isGnuIFunc<ELF64BE>(const SymbolBody &S);
-
 namespace {
 class X86TargetInfo final : public TargetInfo {
 public:
@@ -1580,6 +1575,11 @@ bool needsMipsLocalGot(uint32_t Type, Sy
   return !Config->Shared;
 }
 
+template bool isGnuIFunc<ELF32LE>(const SymbolBody &S);
+template bool isGnuIFunc<ELF32BE>(const SymbolBody &S);
+template bool isGnuIFunc<ELF64LE>(const SymbolBody &S);
+template bool isGnuIFunc<ELF64BE>(const SymbolBody &S);
+
 template uint32_t getMipsGpAddr<ELF32LE>();
 template uint32_t getMipsGpAddr<ELF32BE>();
 template uint64_t getMipsGpAddr<ELF64LE>();




More information about the llvm-commits mailing list