LTO: Assert visibility of local linkage when merging symbols
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 7 May 2014 22:55:46 +0000 (22:55 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 7 May 2014 22:55:46 +0000 (22:55 +0000)
commitc7e175a743babd383384aa3ca870f2406a8861da
tree203c916f85d5573911464f59c6ac72c0a27bbee5
parent83533dd617a1d1ba0e43f60d161f3813d39a6fb0
LTO: Assert visibility of local linkage when merging symbols

`ModuleLinker::getLinkageResult()` shouldn't create symbols with local
linkage and non-default visibility -- in fact, symbols with local
linkage shouldn't be merged at all.  Assert to that effect.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208262 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Linker/LinkModules.cpp