in PIC modes (in accordance with existing comment).
gcc.apple/asm-block-25.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74886
91177308-0d34-0410-b5e6-
96231b3b80d8
continue;
}
}
-
+
// Otherwise, this isn't something we can handle, reject it.
return;
}
+ // If we require an extra load to get this address, as in PIC mode, we
+ // can't accept it.
+ if (Subtarget->GVRequiresExtraLoad(GA->getGlobal(),
+ getTargetMachine(), false))
+ return;
if (hasMemory)
Op = LowerGlobalAddress(GA->getGlobal(), Op.getDebugLoc(), Offset, DAG);