diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 06:26:17 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 06:26:17 +0000 |
commit | fb1e4465f14a4fcf8376a6c249bcdf86af915e69 (patch) | |
tree | f11106aece9ef810763f4f09fc9e5d5cc4eda363 /clang/test/CodeGen/builtins.c | |
parent | b17ebff627415bdbe37e5c8c1c3926edb1c349ed (diff) | |
download | bcm5719-llvm-fb1e4465f14a4fcf8376a6c249bcdf86af915e69.tar.gz bcm5719-llvm-fb1e4465f14a4fcf8376a6c249bcdf86af915e69.zip |
os_log: Add a new privacy annotation "sensitive".
This is a stricter privacy annotation than "private", which will be used
for data that shouldn’t be logged to disk. For backward compatibility,
the "private" bit is set too.
rdar://problem/36755912
llvm-svn: 346210
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 829f725617f..40d7ca32d77 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -443,10 +443,17 @@ void test_builtin_os_log(void *buf, int i, const char *data) { // CHECK: call void @__os_log_helper_1_3_1_8_33( __builtin_os_log_format(buf, "%{ xyz, private }s", "abc"); + // CHECK: call void @__os_log_helper_1_3_1_8_37( + __builtin_os_log_format(buf, "%{ xyz, sensitive }s", "abc"); + // The strictest privacy annotation in the string wins. // CHECK: call void @__os_log_helper_1_3_1_8_33( __builtin_os_log_format(buf, "%{ private, public, private, public}s", "abc"); + + // CHECK: call void @__os_log_helper_1_3_1_8_37( + __builtin_os_log_format(buf, "%{ private, sensitive, private, public}s", + "abc"); } // CHECK-LABEL: define linkonce_odr hidden void @__os_log_helper_1_3_4_4_0_8_34_4_17_8_49 |