[PATCH] D39331: Add flags to control the -finstrument-functions instrumentation calls to __cyg_profile functions

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 10:54:42 PST 2017


rnk added inline comments.


================
Comment at: include/clang/Driver/Options.td:1032
+def fno_instrument_functions_inline : Flag<["-"], "fno-instrument-functions-inline">, Group<f_Group>, Flags<[CC1Option]>,
+  HelpText<"When using -finstrument-functions, insert the calls after inlining">;
 
----------------
This actually describes GCC's behavior for `-finstrument-functions`. I suspect the current behavior is pretty useless for most people. I'd rather make the new behavior the default and add a flag to request the old behavior.


https://reviews.llvm.org/D39331





More information about the cfe-commits mailing list