|
1 |
| -// RUN: %clang_cc1 -disable-llvm-passes -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions | FileCheck -check-prefix=PREINLINE %s |
2 |
| -// RUN: %clang_cc1 -disable-llvm-passes -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-function-entry-bare | FileCheck -check-prefix=BARE %s |
| 1 | +// RUN: %clang_cc1 -disable-llvm-passes -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions | FileCheck --check-prefix=PREINLINE --implicit-check-not="__cyg_profile_func_enter" %s |
| 2 | +// RUN: %clang_cc1 -disable-llvm-passes -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-function-entry-bare | FileCheck --check-prefix=BARE --implicit-check-not="__cyg_profile_func_enter" %s |
3 | 3 |
|
4 | 4 | @interface ObjCClass
|
5 | 5 | @end
|
6 | 6 |
|
7 | 7 | @implementation ObjCClass
|
8 | 8 |
|
9 |
| -// PREINLINE: @"\01+[ObjCClass initialize]"{{\(.*\)}} #0 |
10 |
| -// BARE: @"\01+[ObjCClass initialize]"{{\(.*\)}} #0 |
| 9 | +// PREINLINE: define {{.*}}@"\01+[ObjCClass initialize]"{{\(.*\)}} #[[#ATTR:]] |
| 10 | +// BARE: define {{.*}}@"\01+[ObjCClass initialize]"{{\(.*\)}} #[[#ATTR:]] |
11 | 11 | + (void)initialize {
|
12 | 12 | }
|
13 | 13 |
|
14 |
| -// BARE: @"\01+[ObjCClass load]"{{\(.*\)}} #1 |
15 | 14 | + (void)load __attribute__((no_instrument_function)) {
|
16 | 15 | }
|
17 | 16 |
|
18 |
| -// PREINLINE: @"\01-[ObjCClass dealloc]"{{\(.*\)}} #1 |
19 |
| -// BARE: @"\01-[ObjCClass dealloc]"{{\(.*\)}} #1 |
20 | 17 | - (void)dealloc __attribute__((no_instrument_function)) {
|
21 | 18 | }
|
22 | 19 |
|
23 |
| -// PREINLINE: attributes #0 = { {{.*}}"instrument-function-entry"="__cyg_profile_func_enter" |
24 |
| -// PREINLINE-NOT: attributes #0 = { {{.*}}"instrument-function-entry"="__cyg_profile_func_enter_bare" |
25 |
| -// PREINLINE-NOT: attributes #2 = { {{.*}}"__cyg_profile_func_enter" |
26 |
| -// BARE: attributes #0 = { {{.*}}"instrument-function-entry-inlined"="__cyg_profile_func_enter_bare" |
27 |
| -// BARE-NOT: attributes #0 = { {{.*}}"__cyg_profile_func_enter" |
28 |
| -// BARE-NOT: attributes #2 = { {{.*}}"__cyg_profile_func_enter_bare" |
| 20 | +// PREINLINE: attributes #[[#ATTR]] = |
| 21 | +// PREINLINE-SAME: "instrument-function-entry"="__cyg_profile_func_enter" |
| 22 | +// BARE: attributes #[[#ATTR]] = |
| 23 | +// BARE-SAME: "instrument-function-entry-inlined"="__cyg_profile_func_enter_bare" |
29 | 24 | @end
|
0 commit comments