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
7 @implementation ObjCClass
9 // PREINLINE: @"\01+[ObjCClass initialize]"{{\(.*\)}} #0
10 // BARE: @"\01+[ObjCClass initialize]"{{\(.*\)}} #0
14 // BARE: @"\01+[ObjCClass load]"{{\(.*\)}} #1
15 + (void)load __attribute__((no_instrument_function)) {
18 // PREINLINE: @"\01-[ObjCClass dealloc]"{{\(.*\)}} #1
19 // BARE: @"\01-[ObjCClass dealloc]"{{\(.*\)}} #1
20 - (void)dealloc __attribute__((no_instrument_function)) {
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"