This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
35 lines
1.2 KiB
Objective-C
35 lines
1.2 KiB
Objective-C
// RUN: %clang_cc1 -no-opaque-pointers -S -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-functions | FileCheck %s
|
|
// RUN: %clang_cc1 -no-opaque-pointers -S -triple x86_64-apple-darwin10 -debug-info-kind=standalone -emit-llvm -o - %s -finstrument-function-entry-bare | FileCheck -check-prefix=BARE %s
|
|
|
|
@interface ObjCClass
|
|
@end
|
|
|
|
@implementation ObjCClass
|
|
|
|
// CHECK: @"\01+[ObjCClass initialize]"
|
|
// CHECK: call void @__cyg_profile_func_enter
|
|
// CHECK: call void @__cyg_profile_func_exit
|
|
// BARE: @"\01+[ObjCClass initialize]"
|
|
// BARE: call void @__cyg_profile_func_enter
|
|
+ (void)initialize {
|
|
}
|
|
|
|
// CHECK: @"\01+[ObjCClass load]"
|
|
// CHECK-NOT: call void @__cyg_profile_func_enter
|
|
// BARE: @"\01+[ObjCClass load]"
|
|
// BARE-NOT: call void @__cyg_profile_func_enter
|
|
+ (void)load __attribute__((no_instrument_function)) {
|
|
}
|
|
|
|
// CHECK: @"\01-[ObjCClass dealloc]"
|
|
// CHECK-NOT: call void @__cyg_profile_func_enter
|
|
// BARE: @"\01-[ObjCClass dealloc]"
|
|
// BARE-NOT: call void @__cyg_profile_func_enter
|
|
- (void)dealloc __attribute__((no_instrument_function)) {
|
|
}
|
|
|
|
// CHECK: declare void @__cyg_profile_func_enter(i8*, i8*)
|
|
// CHECK: declare void @__cyg_profile_func_exit(i8*, i8*)
|
|
// BARE: declare void @__cyg_profile_func_enter_bare
|
|
@end
|