[lld] r272711 - ELF: Add a test showing that the new local_unnamed_addr attribute can permit internalization.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 14:02:15 PDT 2016
Author: pcc
Date: Tue Jun 14 16:02:15 2016
New Revision: 272711
URL: http://llvm.org/viewvc/llvm-project?rev=272711&view=rev
Log:
ELF: Add a test showing that the new local_unnamed_addr attribute can permit internalization.
Part of the fix for PR27553.
Differential Revision: http://reviews.llvm.org/D20259
Modified:
lld/trunk/test/ELF/lto/internalize-exportdyn.ll
Modified: lld/trunk/test/ELF/lto/internalize-exportdyn.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-exportdyn.ll?rev=272711&r1=272710&r2=272711&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-exportdyn.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-exportdyn.ll Tue Jun 14 16:02:15 2016
@@ -19,7 +19,11 @@ define hidden void @bar() {
ret void
}
-define linkonce_odr void @zed() unnamed_addr {
+define linkonce_odr void @zed() local_unnamed_addr {
+ ret void
+}
+
+define linkonce_odr void @zed2() unnamed_addr {
ret void
}
@@ -38,5 +42,6 @@ define linkonce_odr void @baz() {
; CHECK: define void @foo()
; CHECK: define internal void @bar()
; CHECK: define internal void @zed()
+; CHECK: define internal void @zed2()
; CHECK: define weak_odr void @bah()
; CHECK: define weak_odr void @baz()
More information about the llvm-commits
mailing list