[all-commits] [llvm/llvm-project] a2fb2c: [GlobalMerge] Preserve symbol visibility when merg...

Eli Friedman via All-commits all-commits at lists.llvm.org
Tue Jan 28 13:26:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a2fb2c0ddca14c133f24d08af4a78b6a3d612ec6
      https://github.com/llvm/llvm-project/commit/a2fb2c0ddca14c133f24d08af4a78b6a3d612ec6
  Author: Michael Spang <spang at google.com>
  Date:   2020-01-28 (Tue, 28 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalMerge.cpp
    A llvm/test/CodeGen/AArch64/global-merge-hidden-minsize.ll

  Log Message:
  -----------
  [GlobalMerge] Preserve symbol visibility when merging globals

Symbols created for merged external global variables have default
visibility. This can break programs when compiling with -Oz
-fvisibility=hidden as symbols that should be hidden will be exported at
link time.

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




More information about the All-commits mailing list