diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:57:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 20:57:03 +0000 |
commit | f954a0f028739d40ff37aed3b6f00e150d05c78d (patch) | |
tree | 9fb9238afe1cff0e1aceaf1b65bd88c1b2b88762 /llvm/lib/Target/PowerPC | |
parent | a37aab2515a174ae203659ff24f6274b3a823105 (diff) | |
download | bcm5719-llvm-f954a0f028739d40ff37aed3b6f00e150d05c78d.tar.gz bcm5719-llvm-f954a0f028739d40ff37aed3b6f00e150d05c78d.zip |
Target/PPC: Eliminate a use of getDarwinVers().
llvm-svn: 129810
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 5ed7600a15e..83cfc38070c 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2444,7 +2444,8 @@ unsigned PrepareCall(SelectionDAG &DAG, SDValue &Callee, SDValue &InFlag, 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 PrepareCall(SelectionDAG &DAG, SDValue &Callee, SDValue &InFlag, 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. |