forked from OSchip/llvm-project
parent
a0a820fadb
commit
b5b71e07af
|
@ -2199,8 +2199,8 @@ X86TargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
|||
GV->hasDefaultVisibility() && !GV->hasLocalLinkage()) {
|
||||
OpFlags = X86II::MO_PLT;
|
||||
} else if (Subtarget->isPICStyleStubAny() &&
|
||||
(GV->isDeclaration() || GV->isWeakForLinker()) &&
|
||||
Subtarget->getDarwinVers() < 9) {
|
||||
(GV->isDeclaration() || GV->isWeakForLinker()) &&
|
||||
Subtarget->getDarwinVers() < 9) {
|
||||
// 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.
|
||||
|
@ -2219,7 +2219,7 @@ X86TargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
|||
getTargetMachine().getRelocationModel() == Reloc::PIC_) {
|
||||
OpFlags = X86II::MO_PLT;
|
||||
} else if (Subtarget->isPICStyleStubAny() &&
|
||||
Subtarget->getDarwinVers() < 9) {
|
||||
Subtarget->getDarwinVers() < 9) {
|
||||
// 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.
|
||||
|
|
Loading…
Reference in New Issue