diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-03 07:41:43 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-03 07:41:43 +0000 |
commit | 1380edf4ef9469e2dda07020436a1b229c1ad804 (patch) | |
tree | eb556ccc87157b8445f7f9c59051e9f1a9f755d7 /llvm/test | |
parent | e5f2bfaea9d96c93ff0ca8b5c986092a9a488c47 (diff) | |
download | bcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.tar.gz bcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.zip |
Revert "[ThinLTO] Add an auto-hide feature"
This reverts commit r293970.
After more discussion, this belongs to the linker side and
there is no added value to do it at this level.
llvm-svn: 293993
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/ThinLTO/X86/Inputs/weak_autohide.ll | 6 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/deadstrip.ll | 7 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/weak_autohide.ll | 24 |
3 files changed, 3 insertions, 34 deletions
diff --git a/llvm/test/ThinLTO/X86/Inputs/weak_autohide.ll b/llvm/test/ThinLTO/X86/Inputs/weak_autohide.ll deleted file mode 100644 index c9c2bfd01ac..00000000000 --- a/llvm/test/ThinLTO/X86/Inputs/weak_autohide.ll +++ /dev/null @@ -1,6 +0,0 @@ -target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-apple-macosx10.11.0" - -define weak_odr void @weakodrfunc() { - ret void -} diff --git a/llvm/test/ThinLTO/X86/deadstrip.ll b/llvm/test/ThinLTO/X86/deadstrip.ll index 14e7bae6cd9..6f1cbfe5969 100644 --- a/llvm/test/ThinLTO/X86/deadstrip.ll +++ b/llvm/test/ThinLTO/X86/deadstrip.ll @@ -3,7 +3,7 @@ ; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t1.bc %t2.bc ; RUN: llvm-lto -exported-symbol=_main -thinlto-action=promote %t1.bc -thinlto-index=%t.index.bc -o - | llvm-lto -exported-symbol=_main -thinlto-action=internalize -thinlto-index %t.index.bc -thinlto-module-id=%t1.bc - -o - | llvm-dis -o - | FileCheck %s -; RUN: llvm-lto -exported-symbol=_main -thinlto-action=promote %t2.bc -thinlto-index=%t.index.bc -o - | llvm-lto -exported-symbol=_main -thinlto-action=internalize -thinlto-index %t.index.bc -thinlto-module-id=%t2.bc - -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK2-LTO +; RUN: llvm-lto -exported-symbol=_main -thinlto-action=promote %t2.bc -thinlto-index=%t.index.bc -o - | llvm-lto -exported-symbol=_main -thinlto-action=internalize -thinlto-index %t.index.bc -thinlto-module-id=%t2.bc - -o - | llvm-dis -o - | FileCheck %s --check-prefix=CHECK2 ; RUN: llvm-lto -exported-symbol=_main -thinlto-action=run %t1.bc %t2.bc ; RUN: llvm-nm %t1.bc.thinlto.o | FileCheck %s --check-prefix=CHECK-NM @@ -19,7 +19,7 @@ ; RUN: -r %t2.bc,_dead_func,pl \ ; RUN: -r %t2.bc,_another_dead_func,pl ; RUN: llvm-dis < %t.out.0.3.import.bc | FileCheck %s -; RUN: llvm-dis < %t.out.1.3.import.bc | FileCheck %s --check-prefix=CHECK2-LTO2 +; RUN: llvm-dis < %t.out.1.3.import.bc | FileCheck %s --check-prefix=CHECK2 ; RUN: llvm-nm %t.out.1 | FileCheck %s --check-prefix=CHECK2-NM ; Dead-stripping on the index allows to internalize these, @@ -34,8 +34,7 @@ ; Make sure we didn't internalize @boo, which is reachable via ; llvm.global_ctors -; CHECK2-LTO: define void @boo() -; CHECK2-LTO2: define hidden void @boo() +; CHECK2: define void @boo() ; We should have eventually revoved @baz since it was internalized and unused ; CHECK2-NM-NOT: _baz diff --git a/llvm/test/ThinLTO/X86/weak_autohide.ll b/llvm/test/ThinLTO/X86/weak_autohide.ll deleted file mode 100644 index 063e36db51c..00000000000 --- a/llvm/test/ThinLTO/X86/weak_autohide.ll +++ /dev/null @@ -1,24 +0,0 @@ -; RUN: opt -module-summary %s -o %t1.bc -; RUN: opt -module-summary %p/Inputs/weak_autohide.ll -o %t2.bc - -; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \ -; RUN: -r=%t1.bc,_strong_func,pxl \ -; RUN: -r=%t1.bc,_weakodrfunc,pl \ -; RUN: -r=%t2.bc,_weakodrfunc,l -; RUN: llvm-dis < %t.o.0.2.internalize.bc | FileCheck %s --check-prefix=AUTOHIDE - - -; AUTOHIDE: weak_odr hidden void @weakodrfunc - -target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-apple-macosx10.11.0" - -define weak_odr void @weakodrfunc() #0 { - ret void -} - -define void @strong_func() #0 { - call void @weakodrfunc() - ret void -} - |