]> granicus.if.org Git - clang/commit
[os_log] Mark os_log_helper `nounwind`
authorVedant Kumar <vsk@apple.com>
Tue, 2 Apr 2019 17:42:38 +0000 (17:42 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 2 Apr 2019 17:42:38 +0000 (17:42 +0000)
commit5e8df5da17d424a3841722a9a7f6c3c4ab4b347c
treee4ce5c3abf93d6cd1bfebc7bc8523f454132426f
parentbb0e97888cc58a6786b3e59f4d00875503ee4fc4
[os_log] Mark os_log_helper `nounwind`

Allow the optimizer to remove unnecessary EH cleanups surrounding calls
to os_log_helper, to save some code size.

As a follow-up, it might be worthwhile to add a BasicNoexcept exception
spec to os_log_helper, and to then teach CGCall to emit direct calls for
callees which can't throw. This could save some compile-time.

Differential Revision: https://reviews.llvm.org/D60108

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357501 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGenObjCXX/os_log.mm [new file with mode: 0644]