Revert r159136 due to PR13124.
authorMatt Beaumont-Gay <matthewbg@google.com>
Wed, 27 Jun 2012 17:10:33 +0000 (17:10 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Wed, 27 Jun 2012 17:10:33 +0000 (17:10 +0000)
commit06b8c285d387d413e51108abea5168d7dc1d97b7
treea51f0f47e6481b06e31f768949b4395d7ab32498
parentf6ce8ea20c558db1cb1b448ca15c878dd6dbf71b
Revert r159136 due to PR13124.

Original commit message:

If a constant or a function has linkonce_odr linkage and unnamed_addr, mark it
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@159272 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/GlobalValue.h
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/hidden.ll [deleted file]