HomePhabricator

[Support] Wrap extern TLS variable in getter function

Authored by zero9178 on Jan 31 2020, 1:27 AM.

Description

[Support] Wrap extern TLS variable in getter function

This patch wraps an external thread local storage variable inside of a
getter function and makes it have internal linkage. This allows LLVM to
be built with BUILD_SHARED_LIBS on windows with MinGW. Additionally it
allows Clang versions prior to 10 to compile current trunk for MinGW.

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

Details

Committed
mstorsjoJan 31 2020, 1:32 AM
Differential Revision
D73639: [LLVM] Wrap extern TLS variable in getter Function
Parents
rGbf8357d4200d: [gn build] Port 16a0313ee32
Branches
Unknown
Tags
Unknown