From a99ccfce1a7e9c789c353e85dc8f2b1b90c34dbe Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 29 Jun 2016 14:59:50 +0000 Subject: Drop support for creating $stubs. They are created by ld64 since OS X 10.5. llvm-svn: 274130 --- llvm/lib/Target/X86/X86Subtarget.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'llvm/lib/Target/X86/X86Subtarget.cpp') diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp index 49ad9ccaef2..8abc4138acf 100644 --- a/llvm/lib/Target/X86/X86Subtarget.cpp +++ b/llvm/lib/Target/X86/X86Subtarget.cpp @@ -137,13 +137,6 @@ X86Subtarget::classifyGlobalFunctionReference(const GlobalValue *GV, return X86II::MO_NO_FLAG; } - // PC-relative references to external symbols should go through $stub, - // unless we're building with the leopard linker or later, which - // automatically synthesizes these stubs. - if (!getTargetTriple().isMacOSX() || - getTargetTriple().isMacOSXVersionLT(10, 5)) - return X86II::MO_DARWIN_STUB; - return X86II::MO_NO_FLAG; } -- cgit v1.2.3