forked from OSchip/llvm-project
Driver: Add -fno-profile-arcs to go with -fprofile-arcs
This is a trivial gcc-compatible change. llvm-svn: 215051
This commit is contained in:
parent
64a8cc7d0d
commit
31a4aca69b
|
@ -822,6 +822,7 @@ def fno_pic : Flag<["-"], "fno-pic">, Group<f_Group>;
|
|||
def fpie : Flag<["-"], "fpie">, Group<f_Group>;
|
||||
def fno_pie : Flag<["-"], "fno-pie">, Group<f_Group>;
|
||||
def fprofile_arcs : Flag<["-"], "fprofile-arcs">, Group<f_Group>;
|
||||
def fno_profile_arcs : Flag<["-"], "fno-profile-arcs">, Group<f_Group>;
|
||||
def fprofile_generate : Flag<["-"], "fprofile-generate">, Group<f_Group>;
|
||||
def framework : Separate<["-"], "framework">, Flags<[LinkerInput]>;
|
||||
def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;
|
||||
|
|
|
@ -333,7 +333,8 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args,
|
|||
}
|
||||
|
||||
// If we are building profile support, link that library in.
|
||||
if (Args.hasArg(options::OPT_fprofile_arcs) ||
|
||||
if (Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
|
||||
false) ||
|
||||
Args.hasArg(options::OPT_fprofile_generate) ||
|
||||
Args.hasArg(options::OPT_fprofile_instr_generate) ||
|
||||
Args.hasArg(options::OPT_fcreate_profile) ||
|
||||
|
|
|
@ -2105,7 +2105,8 @@ static void addClangRTLinux(
|
|||
|
||||
static void addProfileRT(
|
||||
const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) {
|
||||
if (!(Args.hasArg(options::OPT_fprofile_arcs) ||
|
||||
if (!(Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
|
||||
false) ||
|
||||
Args.hasArg(options::OPT_fprofile_generate) ||
|
||||
Args.hasArg(options::OPT_fprofile_instr_generate) ||
|
||||
Args.hasArg(options::OPT_fcreate_profile) ||
|
||||
|
@ -3226,7 +3227,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (Args.hasArg(options::OPT_ftest_coverage) ||
|
||||
Args.hasArg(options::OPT_coverage))
|
||||
CmdArgs.push_back("-femit-coverage-notes");
|
||||
if (Args.hasArg(options::OPT_fprofile_arcs) ||
|
||||
if (Args.hasFlag(options::OPT_fprofile_arcs, options::OPT_fno_profile_arcs,
|
||||
false) ||
|
||||
Args.hasArg(options::OPT_coverage))
|
||||
CmdArgs.push_back("-femit-coverage-data");
|
||||
|
||||
|
|
Loading…
Reference in New Issue