| 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 |
|
| 4 |
@interface ObjCClass |
| 5 |
@end |
| 6 |
|
| 7 |
@implementation ObjCClass |
| 8 |
|
| 9 |
// PREINLINE: define {{.*}}@"\01+[ObjCClass initialize]"{{\(.*\)}} #[[#ATTR:]] |
| 10 |
// BARE: define {{.*}}@"\01+[ObjCClass initialize]"{{\(.*\)}} #[[#ATTR:]] |
| 11 |
+ (void)initialize { |
| 12 |
} |
| 13 |
|
| 14 |
+ (void)load __attribute__((no_instrument_function)) { |
| 15 |
} |
| 16 |
|
| 17 |
- (void)dealloc __attribute__((no_instrument_function)) { |
| 18 |
} |
| 19 |
|
| 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" |
| 24 |
@end |