[cfe-commits] r138610 - /cfe/trunk/lib/Driver/Tools.cpp
Francois Pichet
pichet2000 at gmail.com
Thu Aug 25 17:18:13 PDT 2011
Author: fpichet
Date: Thu Aug 25 19:18:13 2011
New Revision: 138610
URL: http://llvm.org/viewvc/llvm-project?rev=138610&view=rev
Log: (empty)
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=138610&r1=138609&r2=138610&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Aug 25 19:18:13 2011
@@ -1777,8 +1777,18 @@
// -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.
More information about the cfe-commits
mailing list