mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
In the absence of a linker to build the GOT, use the 32-bit
non_lazy_ptr mechanism on x86-64 Darwin JIT. Fixes a bunch of last night's failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04f4f4f447
commit
ec867a22b3
@ -251,7 +251,9 @@ static bool isDisp8(int Value) {
|
||||
}
|
||||
|
||||
bool Emitter::gvNeedsLazyPtr(const GlobalValue *GV) {
|
||||
return !Is64BitMode &&
|
||||
// For Darwin, simulate the linktime GOT by using the same lazy-pointer
|
||||
// mechanism as 32-bit mode.
|
||||
return (!Is64BitMode || TM.getSubtarget<X86Subtarget>().isTargetDarwin()) &&
|
||||
TM.getSubtarget<X86Subtarget>().GVRequiresExtraLoad(GV, TM, false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user