Drop support for creating $stubs.

They are created by ld64 since OS X 10.5.

llvm-svn: 274130
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index f0c1551..a9f26a5 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -4279,16 +4279,12 @@
   // we're building with the leopard linker or later, which automatically
   // synthesizes these stubs.
   const TargetMachine &TM = DAG.getTarget();
-  const Triple &TargetTriple = Subtarget.getTargetTriple();
-  bool OldMachOLinker =
-      TargetTriple.isMacOSX() && TargetTriple.isMacOSXVersionLT(10, 5);
   const Module *Mod = DAG.getMachineFunction().getFunction()->getParent();
   const GlobalValue *GV = nullptr;
   if (auto *G = dyn_cast<GlobalAddressSDNode>(Callee))
     GV = G->getGlobal();
   bool Local = TM.shouldAssumeDSOLocal(*Mod, GV);
-  bool UsePlt =
-      !Local && (OldMachOLinker || (Subtarget.isTargetELF() && !isPPC64));
+  bool UsePlt = !Local && Subtarget.isTargetELF() && !isPPC64;
 
   if (isFunctionGlobalAddress(Callee)) {
     GlobalAddressSDNode *G = cast<GlobalAddressSDNode>(Callee);
@@ -4296,7 +4292,7 @@
     // thread-specific pointer.
     unsigned OpFlags = 0;
     if (UsePlt)
-      OpFlags = PPCII::MO_PLT_OR_STUB;
+      OpFlags = PPCII::MO_PLT;
 
     // If the callee is a GlobalAddress/ExternalSymbol node (quite common,
     // every direct call is) turn it into a TargetGlobalAddress /
@@ -4310,7 +4306,7 @@
     unsigned char OpFlags = 0;
 
     if (UsePlt)
-      OpFlags = PPCII::MO_PLT_OR_STUB;
+      OpFlags = PPCII::MO_PLT;
 
     Callee = DAG.getTargetExternalSymbol(S->getSymbol(), Callee.getValueType(),
                                          OpFlags);