mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-30 00:32:53 +00:00
Target/PPC: Eliminate a use of getDarwinVers().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
869eca129b
commit
14e2a90b7b
@ -2444,7 +2444,8 @@ unsigned PrepareCall(SelectionDAG &DAG, SDValue &Callee, SDValue &InFlag,
|
|||||||
if (!DAG.getTarget().getSubtarget<PPCSubtarget>().isJITCodeModel()) {
|
if (!DAG.getTarget().getSubtarget<PPCSubtarget>().isJITCodeModel()) {
|
||||||
unsigned OpFlags = 0;
|
unsigned OpFlags = 0;
|
||||||
if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
|
if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
|
||||||
PPCSubTarget.getDarwinVers() < 9 &&
|
(!PPCSubTarget.getTargetTriple().isOSX() ||
|
||||||
|
PPCSubTarget.getTargetTriple().isOSXVersionLT(10, 5)) &&
|
||||||
(G->getGlobal()->isDeclaration() ||
|
(G->getGlobal()->isDeclaration() ||
|
||||||
G->getGlobal()->isWeakForLinker())) {
|
G->getGlobal()->isWeakForLinker())) {
|
||||||
// PC-relative references to external symbols should go through $stub,
|
// 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;
|
unsigned char OpFlags = 0;
|
||||||
|
|
||||||
if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
|
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,
|
// PC-relative references to external symbols should go through $stub,
|
||||||
// unless we're building with the leopard linker or later, which
|
// unless we're building with the leopard linker or later, which
|
||||||
// automatically synthesizes these stubs.
|
// automatically synthesizes these stubs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user