]> granicus.if.org Git - clang/commit
[XRay] [clang] Allow logging the first argument of a function call.
authorDean Michael Berris <dberris@google.com>
Mon, 6 Mar 2017 07:08:21 +0000 (07:08 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 6 Mar 2017 07:08:21 +0000 (07:08 +0000)
commitf037bd533e9461b203548e6c1e8fca08155a0a51
treedff62d158af1f9ccbf536c47fd6045657ae848e3
parenta7325b067d8d0ebf370ffbffb0f861d9252c551c
[XRay] [clang] Allow logging the first argument of a function call.

Summary:
Functions with the "xray_log_args" attribute will tell LLVM to emit a special
XRay sled for compiler-rt to copy any call arguments to your logging handler.

Reviewers: dberris

Reviewed By: dberris

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296999 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
lib/CodeGen/CodeGenFunction.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/xray-log-args.cpp [new file with mode: 0644]
test/Sema/xray-log-args-oob.c [new file with mode: 0644]
test/Sema/xray-log-args-oob.cpp [new file with mode: 0644]