[llvm] r254989 - Add a test showing that we internalize lazily linked GVs.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 18:38:14 PST 2015
Author: rafael
Date: Mon Dec 7 20:38:14 2015
New Revision: 254989
URL: http://llvm.org/viewvc/llvm-project?rev=254989&view=rev
Log:
Add a test showing that we internalize lazily linked GVs.
Added:
llvm/trunk/test/Linker/Inputs/internalize-lazy.ll
llvm/trunk/test/Linker/internalize-lazy.ll
Added: llvm/trunk/test/Linker/Inputs/internalize-lazy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/internalize-lazy.ll?rev=254989&view=auto
==============================================================================
--- llvm/trunk/test/Linker/Inputs/internalize-lazy.ll (added)
+++ llvm/trunk/test/Linker/Inputs/internalize-lazy.ll Mon Dec 7 20:38:14 2015
@@ -0,0 +1,8 @@
+define linkonce_odr void @g() {
+ ret void
+}
+
+define void @f() {
+ call void @g()
+ ret void
+}
Added: llvm/trunk/test/Linker/internalize-lazy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/internalize-lazy.ll?rev=254989&view=auto
==============================================================================
--- llvm/trunk/test/Linker/internalize-lazy.ll (added)
+++ llvm/trunk/test/Linker/internalize-lazy.ll Mon Dec 7 20:38:14 2015
@@ -0,0 +1,4 @@
+; RUN: llvm-link -S -internalize %s %p/Inputs/internalize-lazy.ll | FileCheck %s
+
+; CHECK: define internal void @f
+; CHECK: define internal void @g
More information about the llvm-commits
mailing list