[llvm-commits] [llvm] r129810 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Daniel Dunbar
daniel at zuster.org
Tue Apr 19 13:57:03 PDT 2011
Author: ddunbar
Date: Tue Apr 19 15:57:03 2011
New Revision: 129810
URL: http://llvm.org/viewvc/llvm-project?rev=129810&view=rev
Log:
Target/PPC: Eliminate a use of getDarwinVers().
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=129810&r1=129809&r2=129810&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Apr 19 15:57:03 2011
@@ -2444,7 +2444,8 @@
if (!DAG.getTarget().getSubtarget<PPCSubtarget>().isJITCodeModel()) {
unsigned OpFlags = 0;
if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
- PPCSubTarget.getDarwinVers() < 9 &&
+ (!PPCSubTarget.getTargetTriple().isOSX() ||
+ PPCSubTarget.getTargetTriple().isOSXVersionLT(10, 5)) &&
(G->getGlobal()->isDeclaration() ||
G->getGlobal()->isWeakForLinker())) {
// PC-relative references to external symbols should go through $stub,
@@ -2467,7 +2468,8 @@
unsigned char OpFlags = 0;
if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
- PPCSubTarget.getDarwinVers() < 9) {
+ (!PPCSubTarget.getTargetTriple().isOSX() ||
+ PPCSubTarget.getTargetTriple().isOSXVersionLT(10, 5))) {
// 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.
More information about the llvm-commits
mailing list