[PATCH] D30277: [COFF] added test for thinlto
Bob Haarman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 13:12:14 PST 2017
inglorion updated this revision to Diff 89554.
inglorion added a comment.
use llvm-nm instead of looking at the bitcode
https://reviews.llvm.org/D30277
Files:
test/COFF/thinlto.ll
Index: test/COFF/thinlto.ll
===================================================================
--- /dev/null
+++ 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: T main
+
+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.89554.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170223/5dca75be/attachment.bin>
More information about the llvm-commits
mailing list