(no commit message)

llvm-svn: 138610
This commit is contained in:
Francois Pichet 2011-08-26 00:18:13 +00:00
parent 9942fe7c87
commit 9a98454a7d
1 changed files with 12 additions and 2 deletions

View File

@ -1777,8 +1777,18 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// -fno-delayed-template-parsing is default.
if (Args.hasFlag(options::OPT_fdelayed_template_parsing,
options::OPT_fno_delayed_template_parsing,
false))
CmdArgs.push_back("-fdelayed-template-parsing");
false)) {
if (Args.hasArg(options::OPT_fdelayed_template_parsing)) {
StringRef Force = Args.getLastArgValue(options::OPT_fdelayed_template_parsing, "");
if (Force == "-force")
CmdArgs.push_back("-fdelayed-template-parsing-force");
else
CmdArgs.push_back("-fdelayed-template-parsing");
}
else
CmdArgs.push_back("-fdelayed-template-parsing");
}
// -fgnu-keywords default varies depending on language; only pass if
// specified.