diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-06-27 17:10:33 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-06-27 17:10:33 +0000 |
commit | 06b8c285d387d413e51108abea5168d7dc1d97b7 (patch) | |
tree | a51f0f47e6481b06e31f768949b4395d7ab32498 /test/Transforms | |
parent | f6ce8ea20c558db1cb1b448ca15c878dd6dbf71b (diff) | |
download | external_llvm-06b8c285d387d413e51108abea5168d7dc1d97b7.zip external_llvm-06b8c285d387d413e51108abea5168d7dc1d97b7.tar.gz external_llvm-06b8c285d387d413e51108abea5168d7dc1d97b7.tar.bz2 |
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
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/GlobalOpt/hidden.ll | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/Transforms/GlobalOpt/hidden.ll b/test/Transforms/GlobalOpt/hidden.ll deleted file mode 100644 index 301e158..0000000 --- a/test/Transforms/GlobalOpt/hidden.ll +++ /dev/null @@ -1,14 +0,0 @@ -; RUN: opt %s -globalopt -S | FileCheck %s - -@foo = linkonce_odr unnamed_addr constant i32 42 -; CHECK: @foo = linkonce_odr hidden unnamed_addr constant i32 42 - -define linkonce_odr void @bar() unnamed_addr { -; CHECK: define linkonce_odr hidden void @bar() unnamed_addr { - ret void -} - -define i32* @zed() { - call void @bar() - ret i32* @foo -} |