[PATCH] D30277: [COFF] added test for thinlto

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 15:54:13 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL296042: [COFF] added test for thinlto (authored by inglorion).

Changed prior to commit:
  https://reviews.llvm.org/D30277?vs=89561&id=89579#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D30277

Files:
  lld/trunk/test/COFF/thinlto.ll


Index: lld/trunk/test/COFF/thinlto.ll
===================================================================
--- lld/trunk/test/COFF/thinlto.ll
+++ lld/trunk/test/COFF/thinlto.ll
@@ -0,0 +1,18 @@
+; RUN: rm -fr %T/thinlto
+; RUN: mkdir %T/thinlto
+; RUN: opt -thinlto-bc -o %T/thinlto/main.obj %s
+; RUN: opt -thinlto-bc -o %T/thinlto/foo.obj %S/Inputs/lto-dep.ll
+; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj
+; RUN: llvm-nm %T/thinlto/main.exe.lto.obj | FileCheck %s
+
+; CHECK-NOT: U foo
+
+target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-pc-windows-msvc"
+
+define i32 @main() {
+  call void @foo()
+  ret i32 0
+}
+
+declare void @foo()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30277.89579.patch
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170223/692c8aa3/attachment.bin>


More information about the llvm-commits mailing list