diff options
author | Ian Levesque <ianlevesque@fb.com> | 2020-02-11 13:52:45 -0800 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2020-02-11 14:00:41 -0800 |
commit | 14f870366a93ba0c6311883d900e24339681ba76 (patch) | |
tree | 7faf7a1cb1b63dbceebd3ebb9687a4088fc0d6c5 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 40b2eb353043f4e526575a61b0a90fe06e938db1 (diff) | |
download | llvm-14f870366a93ba0c6311883d900e24339681ba76.zip llvm-14f870366a93ba0c6311883d900e24339681ba76.tar.gz llvm-14f870366a93ba0c6311883d900e24339681ba76.tar.bz2 |
[xray][clang] Always add xray-skip-entry/exit and xray-ignore-loops attrs
The function attributes xray-skip-entry, xray-skip-exit, and
xray-ignore-loops were only being applied if a function had an
xray-instrument attribute, but they should apply if xray is enabled
globally too.
Differential Revision: https://reviews.llvm.org/D73842
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e57c7ef..ae39066 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1099,8 +1099,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Args.hasArg(OPT_fxray_always_emit_typedevents); Opts.XRayInstructionThreshold = getLastArgIntValue(Args, OPT_fxray_instruction_threshold_EQ, 200, Diags); - Opts.XRayIgnoreLoops = - Args.hasArg(OPT_fxray_ignore_loops, OPT_fno_xray_ignore_loops, false); + Opts.XRayIgnoreLoops = Args.hasArg(OPT_fxray_ignore_loops); auto XRayInstrBundles = Args.getAllArgValues(OPT_fxray_instrumentation_bundle); |