1; RUN: llvm-as -o %t.bc %s 2; RUN: rm -f %t.0.5.precodegen.bc %t.1.5.precodegen.bc %t.o %t.o1 3; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold%shlibext %gold -plugin %llvmshlibdir/LLVMgold%shlibext -u foo -u bar -plugin-opt lto-partitions=2 -plugin-opt save-temps -m elf_x86_64 -o %t %t.bc 4; RUN: llvm-dis %t.0.5.precodegen.bc -o - | FileCheck --check-prefix=CHECK-BC0 %s 5; RUN: llvm-dis %t.1.5.precodegen.bc -o - | FileCheck --check-prefix=CHECK-BC1 %s 6; RUN: llvm-nm %t.o | FileCheck --check-prefix=CHECK0 %s 7; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s 8 9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 10target triple = "x86_64-unknown-linux-gnu" 11 12; CHECK-BC0: define dso_local void @foo 13; CHECK-BC0: declare dso_local void @bar 14; CHECK0-NOT: bar 15; CHECK0: T foo 16; CHECK0-NOT: bar 17define void @foo() { 18 call void @bar() 19 ret void 20} 21 22; CHECK-BC1: declare dso_local void @foo 23; CHECK-BC1: define dso_local void @bar 24; CHECK1-NOT: foo 25; CHECK1: T bar 26; CHECK1-NOT: foo 27define void @bar() { 28 call void @foo() 29 ret void 30} 31