r275570 - XRay: Remove duplicate checks for xray instrumentation flags
Dean Michael Berris via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 15 08:46:39 PDT 2016
Author: dberris
Date: Fri Jul 15 10:46:39 2016
New Revision: 275570
URL: http://llvm.org/viewvc/llvm-project?rev=275570&view=rev
Log:
XRay: Remove duplicate checks for xray instrumentation flags
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=275570&r1=275569&r2=275570&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Jul 15 10:46:39 2016
@@ -4612,16 +4612,6 @@ void Clang::ConstructJob(Compilation &C,
if (Args.hasFlag(options::OPT_fxray_instrument,
options::OPT_fnoxray_instrument, false)) {
CmdArgs.push_back("-fxray-instrument");
- if (Arg *A = Args.getLastArg(options::OPT_fxray_instruction_threshold_,
- options::OPT_fxray_instruction_threshold_EQ)) {
- CmdArgs.push_back("-fxray-instruction-threshold");
- CmdArgs.push_back(A->getValue());
- }
- }
-
- if (Args.hasFlag(options::OPT_fxray_instrument,
- options::OPT_fnoxray_instrument, false)) {
- CmdArgs.push_back("-fxray-instrument");
if (const Arg *A =
Args.getLastArg(options::OPT_fxray_instruction_threshold_,
options::OPT_fxray_instruction_threshold_EQ)) {
More information about the cfe-commits
mailing list