Mac OS X x86-64 lower 4G address is not available.
llvm-svn: 40502
This commit is contained in:
parent
952aa6988b
commit
630c1f75b8
|
@ -615,7 +615,8 @@ bool X86DAGToDAGISel::MatchAddress(SDOperand N, X86ISelAddressMode &AM,
|
|||
SDOperand N0 = N.getOperand(0);
|
||||
if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(N0)) {
|
||||
GlobalValue *GV = G->getGlobal();
|
||||
bool isAbs32 = !is64Bit || isStatic;
|
||||
// Mac OS X X86-64 lower 4G address is not available.
|
||||
bool isAbs32 = !is64Bit || (isStatic && !Subtarget->isTargetDarwin());
|
||||
if (isAbs32 || isRoot) {
|
||||
AM.GV = GV;
|
||||
AM.Disp += G->getOffset();
|
||||
|
|
Loading…
Reference in New Issue