HomePhabricator

Add support for __builtin_os_log_format[_buffer_size]
5e9ad90ce7e9Unpublished

Authored by bob.wilson on Jun 13 2016, 10:27 AM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add support for __builtin_os_log_format[_buffer_size]

These new builtins support a mechanism for logging OS events, using a
printf-like format string to specify the layout of data in a buffer.
The _buffer_size version of the builtin can be used to determine the size
of the buffer to allocate to hold the data, and then __builtin_os_log_format
can write data into that buffer. This implements format checking to report
mismatches between the format string and the data arguments. Most of this
code was written by Chris Willmore.

apple-llvm-split-commit: 7378eb19555c81a736d85b966512e5803db69e03
apple-llvm-split-dir: clang/

Details

Committed
bob.wilsonJun 13 2016, 10:38 PM
Parents
rG32d457249c80: Propagating prior merge from 'llvm.org/master'.
Branches
Unknown
Tags
Unknown