brintos

brintos / llvm-project-archived public Read only

0
0
Text · 957 B · 944cf70 Raw
39 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t; split-file %s %t3 4; RUN: opt -module-summary %t/f.ll -o %t/1.o5; RUN: opt -module-summary %t/g.ll -o %t/2.o6; RUN: opt -module-summary %t/empty.ll -o %t/3.o7 8;; Ensure lld writes linked files to linked objects file9; RUN: %lld --thinlto-index-only=%t/1.txt -dylib %t/1.o %t/2.o %t/3.o -o /dev/null10; RUN: FileCheck %s < %t/1.txt11; CHECK: 1.o12; CHECK: 2.o13; CHECK: 3.o14 15;--- f.ll16target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"17target triple = "x86_64-apple-darwin"18 19declare void @g(...)20 21define void @f() {22entry:23  call void (...) @g()24  ret void25}26 27;--- g.ll28target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"29target triple = "x86_64-apple-darwin"30 31define void @g() {32entry:33  ret void34}35 36;--- empty.ll37target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"38target triple = "x86_64-apple-darwin"39