2021-09-29 00:47:51 +02:00
|
|
|
# Check that the .bolt_info section is generated properly.
|
2021-10-02 00:35:43 +02:00
|
|
|
RUN: %clang %S/Inputs/icf-jump-tables.c -o %t
|
2021-09-29 00:47:51 +02:00
|
|
|
RUN: llvm-bolt %t -o %t.bolt && \
|
|
|
|
RUN: llvm-objdump -s -j .note.bolt_info %t.bolt | grep -v "file format" | \
|
|
|
|
RUN: cut -c 44- | tr -d '\n' | FileCheck %s
|
|
|
|
|
2021-11-04 21:36:15 +01:00
|
|
|
CHECK: BOLT revision: {{.*}}, command line: {{.*}}llvm-bolt {{.*}}/bolt-info.test.tmp -o {{.*}}/bolt-info.test.tmp.bolt
|