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