[PATCH] D73842: [xray][clang] Always add xray-skip-entry/exit and xray-ignore-loops attrs
Ian Levesque via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 3 11:29:44 PST 2020
ianlevesque marked 2 inline comments as done.
ianlevesque added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:832
+ Fn->addFnAttr("xray-skip-exit");
+ }
+ if (!CGM.getCodeGenOpts().XRayInstrumentationBundle.has(
----------------
@hiraditya I realize on a previous diff you suggested dropping the brackets. I'll do that here too.
================
Comment at: clang/lib/Frontend/CompilerInvocation.cpp:1103
Opts.XRayIgnoreLoops =
- Args.hasArg(OPT_fxray_ignore_loops, OPT_fno_xray_ignore_loops, false);
+ Args.hasFlag(OPT_fxray_ignore_loops, OPT_fno_xray_ignore_loops, false);
----------------
MaskRay wrote:
> `Args.hasArg(OPT_fxray_ignore_loops);`
>
> There is no need to check a fno option in cc1, if the option is always enabled/disabled by default.
Will update.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73842/new/
https://reviews.llvm.org/D73842
More information about the cfe-commits
mailing list