We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac6be6 commit 5062f77Copy full SHA for 5062f77
llvm/lib/Target/TargetMachine.cpp
@@ -204,7 +204,8 @@ bool TargetMachine::shouldAssumeDSOLocal(const GlobalValue *GV) const {
204
// don't assume the variables to be DSO local unless we actually know
205
// that for sure. This only has to be done for variables; for functions
206
// the linker can insert thunks for calling functions from another DLL.
207
- if (TT.isWindowsGNUEnvironment() && GV->isDeclarationForLinker() &&
+ if ((TT.isWindowsGNUEnvironment() || TT.isWindowsCygwinEnvironment()) &&
208
+ GV->isDeclarationForLinker() &&
209
isa<GlobalVariable>(GV))
210
return false;
211
0 commit comments