Forward -ftemplate-depth-<N> to clang's -ftemplate-depth N.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66516 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py
index 85bc01d..53fe38d 100644
--- a/tools/ccc/ccclib/Tools.py
+++ b/tools/ccc/ccclib/Tools.py
@@ -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)