[PATCH] D39331: Add flags to control the -finstrument-functions instrumentation calls to __cyg_profile functions
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 26 06:31:55 PDT 2017
hans created this revision.
This adds two flags:
-fno-cygprofile-exit Don't insert any calls for function exit.
-fno-cygprofile-args Don't pass any arguments to the cygprofile functions (the implementer has to figure out the caller address themselves)
These are useful for reducing the size and run-time overhead of the instrumentation.
https://reviews.llvm.org/D39331
Files:
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/instrument-functions.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39331.120404.patch
Type: text/x-patch
Size: 9107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171026/c9652b8d/attachment.bin>
More information about the cfe-commits
mailing list