Move target independent code out of x86_64 only path.

The logic for deciding if an undefined symbol should have the value of a
got entry is not target specific.

llvm-svn: 261760
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 9fd1bb5..0e9a8af 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -362,7 +362,7 @@
     // for the symbol.
     TargetInfo::PltNeed NeedPlt = TargetInfo::Plt_No;
     if (Body)
-      NeedPlt = Target->needsPlt(Type, *Body);
+      NeedPlt = Target->needsPlt<ELFT>(Type, *Body);
     if (NeedPlt) {
       if (NeedPlt == TargetInfo::Plt_Implicit)
         Body->NeedsCopyOrPltAddr = true;