summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalOpt
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-06-27 17:10:33 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-06-27 17:10:33 +0000
commit06b8c285d387d413e51108abea5168d7dc1d97b7 (patch)
treea51f0f47e6481b06e31f768949b4395d7ab32498 /test/Transforms/GlobalOpt
parentf6ce8ea20c558db1cb1b448ca15c878dd6dbf71b (diff)
downloadllvm-06b8c285d387d413e51108abea5168d7dc1d97b7.tar.gz
llvm-06b8c285d387d413e51108abea5168d7dc1d97b7.tar.bz2
llvm-06b8c285d387d413e51108abea5168d7dc1d97b7.tar.xz
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/GlobalOpt')
-rw-r--r--test/Transforms/GlobalOpt/hidden.ll14
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 301e158d53..0000000000
--- 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
-}