Add r159136 back now that pr13124 has been fixed.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Sep 2013 23:34:36 +0000 (23:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Sep 2013 23:34:36 +0000 (23:34 +0000)
commit79869ee59abc3aeebda6e15540273a7e5936adb4
tree00091e22e94e2126f6fff3a2ca6d15b68d97aadf
parent4b3e5f24ecedc075a3d9f1a5bdb77190a3a01f22
Add r159136 back now that pr13124 has been fixed.

Original message:
If a constant or a function has linkonce_odr linkage and unnamed_addr, mark
hidden. Being linkonce_odr guarantees that it is available in every dso that
needs it. Being a constant/function with unnamed_addr guarantees that the
copies don't have to be merged.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189886 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalValue.h
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/hidden.ll [new file with mode: 0644]