[llvm-commits] [llvm] r60711 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Evan Cheng
evan.cheng at apple.com
Mon Dec 8 11:29:03 PST 2008
Author: evancheng
Date: Mon Dec 8 13:29:03 2008
New Revision: 60711
URL: http://llvm.org/viewvc/llvm-project?rev=60711&view=rev
Log:
Re-apply 60689 now my head is screwed on right.
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=60711&r1=60710&r2=60711&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Mon Dec 8 13:29:03 2008
@@ -40,6 +40,8 @@
if (TM.getRelocationModel() != Reloc::Static &&
TM.getCodeModel() != CodeModel::Large) {
if (isTargetDarwin()) {
+ if (isDirectCall)
+ return false;
bool isDecl = GV->isDeclaration() && !GV->hasNotBeenReadFromBitcode();
if (GV->hasHiddenVisibility() &&
(Is64Bit || (!isDecl && !GV->hasCommonLinkage())))
More information about the llvm-commits
mailing list