[cfe-commits] r66516 - in /cfe/trunk/tools/ccc/ccclib: Arguments.py Tools.py
Daniel Dunbar
daniel at zuster.org
Mon Mar 9 17:35:33 PDT 2009
Author: ddunbar
Date: Mon Mar 9 19:35:30 2009
New Revision: 66516
URL: http://llvm.org/viewvc/llvm-project?rev=66516&view=rev
Log:
Forward -ftemplate-depth-<N> to clang's -ftemplate-depth N.
Modified:
cfe/trunk/tools/ccc/ccclib/Arguments.py
cfe/trunk/tools/ccc/ccclib/Tools.py
Modified: cfe/trunk/tools/ccc/ccclib/Arguments.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Arguments.py?rev=66516&r1=66515&r2=66516&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Arguments.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Arguments.py Mon Mar 9 19:35:30 2009
@@ -851,6 +851,7 @@
self.f_profileArcsOption = self.addOption(FlagOption('-fprofile-arcs', self.fGroup))
self.f_profileGenerateOption = self.addOption(FlagOption('-fprofile-generate', self.fGroup))
self.f_terminatedVtablesOption = self.addOption(FlagOption('-fterminated-vtables', self.fGroup))
+ self.f_templateDepthOption = self.addOption(JoinedOption('-ftemplate-depth-', self.fGroup))
self.f_timeReportOption = self.addOption(FlagOption('-ftime-report', self.Clang_fGroup))
self.f_traditionalOption = self.addOption(FlagOption('-ftraditional', self.fGroup))
self.f_unwindTablesOption = self.addOption(FlagOption('-funwind-tables', self.fGroup))
Modified: cfe/trunk/tools/ccc/ccclib/Tools.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Tools.py?rev=66516&r1=66515&r2=66516&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Tools.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Tools.py Mon Mar 9 19:35:30 2009
@@ -415,6 +415,11 @@
arglist.addLastArg(cmd_args, arglist.parser.wOption)
arglist.addAllArgs3(cmd_args, arglist.parser.stdOption, arglist.parser.ansiOption, arglist.parser.trigraphsOption)
+ arg = arglist.getLastArg(arglist.parser.f_templateDepthOption)
+ if arg:
+ cmd_args.append('-ftemplate-depth')
+ cmd_args.append(arglist.getValue(arg))
+
arglist.addAllArgs(cmd_args, arglist.parser.Clang_fGroup)
arglist.addLastArg(cmd_args, arglist.parser.dMOption)
More information about the cfe-commits
mailing list