Support for function summary index bitcode sections and files.
[oota-llvm.git] / test / tools / gold / X86 / thinlto.ll
1 ; RUN: llvm-as -function-summary %s -o %t.o
2 ; RUN: llvm-as -function-summary %p/Inputs/thinlto.ll -o %t2.o
3
4 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
5 ; RUN:    --plugin-opt=thinlto \
6 ; RUN:    -shared %t.o %t2.o -o %t3
7 ; RUN: llvm-bcanalyzer -dump %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED
8 ; RUN: not test -e %t3
9
10 ; COMBINED: <MODULE_STRTAB_BLOCK
11 ; COMBINED-NEXT: <ENTRY
12 ; COMBINED-NEXT: <ENTRY
13 ; COMBINED-NEXT: </MODULE_STRTAB_BLOCK
14 ; COMBINED-NEXT: <FUNCTION_SUMMARY_BLOCK
15 ; COMBINED-NEXT: <COMBINED_ENTRY
16 ; COMBINED-NEXT: <COMBINED_ENTRY
17 ; COMBINED-NEXT: </FUNCTION_SUMMARY_BLOCK
18
19 define void @f() {
20 entry:
21   ret void
22 }