From 06b8c285d387d413e51108abea5168d7dc1d97b7 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Wed, 27 Jun 2012 17:10:33 +0000 Subject: 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 --- test/Transforms/GlobalOpt/hidden.ll | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 test/Transforms/GlobalOpt/hidden.ll (limited to 'test/Transforms') 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 -} -- cgit v1.1