]> granicus.if.org Git - clang/commit
[MinGW] Don't mark external variables as DSO local
authorMartin Storsjo <martin@martin.st>
Wed, 29 Aug 2018 17:26:58 +0000 (17:26 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 29 Aug 2018 17:26:58 +0000 (17:26 +0000)
commitc510fac5695e904b43d5bf0feee31cc9550f110e
treefaac998d714a409ea4f0d74f31d257e4d62dfc43
parent6509b6d9b60034ff5d77b7a0223c135b125b0639
[MinGW] Don't mark external variables as DSO local

Since MinGW supports automatically importing external variables from
DLLs even without the DLLImport attribute, we shouldn't mark them
as DSO local unless we actually know them to be local for sure.

Keep marking thread local variables as DSO local.

Differential Revision: https://reviews.llvm.org/D51382

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340941 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/dllimport.c
test/CodeGen/dso-local-executable.c
test/CodeGenCXX/dllexport.cpp
test/CodeGenCXX/dllimport-members.cpp
test/CodeGenCXX/dllimport.cpp
test/CodeGenCXX/dso-local-executable.cpp