From: Dean Michael Berris Date: Fri, 15 Jul 2016 15:46:39 +0000 (+0000) Subject: XRay: Remove duplicate checks for xray instrumentation flags X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b88d6c6be6355c88c8bf9b30d1e2fa614f0817b;p=clang XRay: Remove duplicate checks for xray instrumentation flags git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275570 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index f1a9f41d53..63284bc1b2 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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");