]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275570 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index f1a9f41d5396ddf59c6bc248b7afa39c39460e31..63284bc1b2a0a51e9bf2f67936478a54463c1d0e 100644 (file)
@@ -4609,16 +4609,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
 
   Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions);
 
-  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");