XRay: Remove duplicate checks for xray instrumentation flags
authorDean Michael Berris <dberris@google.com>
Fri, 15 Jul 2016 15:46:39 +0000 (15:46 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 15 Jul 2016 15:46:39 +0000 (15:46 +0000)
llvm-svn: 275570

clang/lib/Driver/Tools.cpp

index f1a9f41..63284bc 100644 (file)
@@ -4612,16 +4612,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
   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)) {