[ItaniumCXXABI] Don't mark an extern_weak init function as dso_local on windows
authorMartin Storsjö <martin@martin.st>
Thu, 19 Dec 2019 11:57:47 +0000 (13:57 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 23 Dec 2019 10:13:48 +0000 (12:13 +0200)
commit86c9831bb40d2c50c36b748b08a75860c4640875
treec1f5165b8061fe847e89d255d963c3b4aa12ca93
parentcc522bc4e3e5e3c46ef34c94c64980957880f738
[ItaniumCXXABI] Don't mark an extern_weak init function as dso_local on windows

Since 6bf108d77a3c, we try to not mark extern_weak symbols as
dso_local, to allow using COFF stubs for references to those symbols
(as the symbol may be missing, resolving to an absolute address zero,
outside of the current DSO).

Differential Revision: https://reviews.llvm.org/D71716
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/mingw-thread-local.cpp [new file with mode: 0644]