mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[Cygwin] Use -femulated-tls by default since r257718 introduced the new pass.
FIXME: Add more targets to use emutls into clang/test/Driver/emulated-tls.cpp. FIXME: Add cygwin tests into llvm/test/CodeGen/X86. Working in progress. llvm-svn: 257984
This commit is contained in:
parent
d65aa3494d
commit
3f93ca1561
@ -12477,17 +12477,13 @@ X86TargetLowering::LowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const {
|
||||
|
||||
GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
|
||||
|
||||
// Cygwin uses emutls.
|
||||
// FIXME: It may be EmulatedTLS-generic also for X86-Android.
|
||||
if (Subtarget->isTargetWindowsCygwin())
|
||||
if (DAG.getTarget().Options.EmulatedTLS)
|
||||
return LowerToTLSEmulatedModel(GA, DAG);
|
||||
|
||||
const GlobalValue *GV = GA->getGlobal();
|
||||
auto PtrVT = getPointerTy(DAG.getDataLayout());
|
||||
|
||||
if (Subtarget->isTargetELF()) {
|
||||
if (DAG.getTarget().Options.EmulatedTLS)
|
||||
return LowerToTLSEmulatedModel(GA, DAG);
|
||||
TLSModel::Model model = DAG.getTarget().getTLSModel(GV);
|
||||
switch (model) {
|
||||
case TLSModel::GeneralDynamic:
|
||||
|
Loading…
x
Reference in New Issue
Block a user