[all-commits] [llvm/llvm-project] 3f6a2f: [Support] Wrap extern TLS variable in getter function

zero9178 via All-commits all-commits at lists.llvm.org
Fri Jan 31 01:33:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f6a2f1ec520651305beaef79fc3f19ebf4ebda6
      https://github.com/llvm/llvm-project/commit/3f6a2f1ec520651305beaef79fc3f19ebf4ebda6
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2020-01-31 (Fri, 31 Jan 2020)

  Changed paths:
    M llvm/include/llvm/Support/TimeProfiler.h
    M llvm/lib/Support/TimeProfiler.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list