[all-commits] [llvm/llvm-project] 0e9b57: [mlir] Fix TypeID for shared libraries built with ...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Fri Oct 9 12:12:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e9b572949ce00e5ca01bf7555abdda12052a213
      https://github.com/llvm/llvm-project/commit/0e9b572949ce00e5ca01bf7555abdda12052a213
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2020-10-09 (Fri, 09 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Support/TypeID.h

  Log Message:
  -----------
  [mlir] Fix TypeID for shared libraries built with -fvisibility=hidden.

* Isolates the visibility controlled parts of its implementation to a detail namespace.
* Applies a struct level visibility attribute which applies to the static local within the get() functions.
* The prior version was not emitting a symbol for the static local "instance" fields when the user TU was compiled with -fvisibility=hidden.

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




More information about the All-commits mailing list