annotate clang/test/CodeGenObjCXX/os_log.mm @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple x86_64-darwin-apple -fobjc-arc \
anatofuz
parents:
diff changeset
2 // RUN: -fexceptions -fcxx-exceptions -O1 -fno-experimental-new-pass-manager | FileCheck %s
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 %s -emit-llvm -o - -triple x86_64-darwin-apple -fobjc-arc \
anatofuz
parents:
diff changeset
4 // RUN: -fexceptions -fcxx-exceptions -O1 -fexperimental-new-pass-manager -fno-inline | FileCheck %s
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 // Check that no EH cleanup is emitted around the call to __os_log_helper.
anatofuz
parents:
diff changeset
7 namespace no_eh_cleanup {
anatofuz
parents:
diff changeset
8 void release(int *lock);
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // CHECK-LABEL: define {{.*}} @_ZN13no_eh_cleanup3logERiPcS1_(
anatofuz
parents:
diff changeset
11 void log(int &i, char *data, char *buf) {
anatofuz
parents:
diff changeset
12 int lock __attribute__((cleanup(release)));
anatofuz
parents:
diff changeset
13 // CHECK: call void @__os_log_helper_1_2_2_4_0_8_34(
anatofuz
parents:
diff changeset
14 // CHECK-NEXT: call void @_ZN13no_eh_cleanup7releaseEPi
anatofuz
parents:
diff changeset
15 __builtin_os_log_format(buf, "%d %{public}s", i, data);
anatofuz
parents:
diff changeset
16 }
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK: define {{.*}} @__os_log_helper_1_2_2_4_0_8_34({{.*}} [[NUW:#[0-9]+]]
anatofuz
parents:
diff changeset
19 }
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // CHECK: attributes [[NUW]] = { {{.*}}nounwind