LTO: -internalize sets visibility to default
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 5 May 2014 17:40:44 +0000 (17:40 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 5 May 2014 17:40:44 +0000 (17:40 +0000)
commitbbd9c21e07084c410f76941ca04c17a13747f342
tree1aeba15a53f603fce5957ede449fa965458ede7f
parentc6e42b5590352eb07a7a2d0d2eb1437ae59bfc2f
LTO: -internalize sets visibility to default

Visibility is meaningless when the linkage is local.  Change
`-internalize` to reset the visibility to `default`.

<rdar://problem/16141113>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207979 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Internalize.cpp
test/Transforms/Internalize/local-visibility.ll [new file with mode: 0644]