Link symbols with different visibilities according to the rules in the
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 5 Jan 2012 23:02:01 +0000 (23:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 5 Jan 2012 23:02:01 +0000 (23:02 +0000)
commit23f8d64b582eaf3e9c1f6bb4b0b5291d7b11a8b3
treeb742fa2c8012714ef817f856abb28a844c95cbfa
parent52672118990fbe2621dbdc2094b91c475e7ae871
Link symbols with different visibilities according to the rules in the
System V Application Binary Interface. This lets us use
-fvisibility-inlines-hidden with LTO.
Fixes PR11697.

llvm-svn: 147624
llvm/lib/Linker/LinkModules.cpp
llvm/test/Linker/visibility1.ll [new file with mode: 0644]
llvm/test/Linker/visibility2.ll [new file with mode: 0644]