XRay: Remove duplicate checks for xray instrumentation flags

llvm-svn: 275570
This commit is contained in:
Dean Michael Berris 2016-07-15 15:46:39 +00:00
parent bba0bf7d37
commit 57ac95b0a6
1 changed files with 0 additions and 10 deletions

View 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");