llvm.org GIT mirror llvm / 14e2a90
Target/PPC: Eliminate a use of getDarwinVers(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129810 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
24432443 if (!DAG.getTarget().getSubtarget().isJITCodeModel()) {
24442444 unsigned OpFlags = 0;
24452445 if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
2446 PPCSubTarget.getDarwinVers() < 9 &&
2446 (!PPCSubTarget.getTargetTriple().isOSX() ||
2447 PPCSubTarget.getTargetTriple().isOSXVersionLT(10, 5)) &&
24472448 (G->getGlobal()->isDeclaration() ||
24482449 G->getGlobal()->isWeakForLinker())) {
24492450 // PC-relative references to external symbols should go through $stub,
24662467 unsigned char OpFlags = 0;
24672468
24682469 if (DAG.getTarget().getRelocationModel() != Reloc::Static &&
2469 PPCSubTarget.getDarwinVers() < 9) {
2470 (!PPCSubTarget.getTargetTriple().isOSX() ||
2471 PPCSubTarget.getTargetTriple().isOSXVersionLT(10, 5))) {
24702472 // PC-relative references to external symbols should go through $stub,
24712473 // unless we're building with the leopard linker or later, which
24722474 // automatically synthesizes these stubs.