[PATCH] D29704: [XRay] [clang] Allow logging the first argument of a function call.

Martin Pelikán via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 7 21:46:08 PST 2017


pelikan created this revision.

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.


https://reviews.llvm.org/D29704

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  lib/CodeGen/CodeGenFunction.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGen/xray-log-args.cpp
  test/Sema/xray-log-args-oob.c
  test/Sema/xray-log-args-oob.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29704.87591.patch
Type: text/x-patch
Size: 6323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170208/34799962/attachment-0001.bin>


More information about the cfe-commits mailing list