ccc: Forward -femit-all-decls to clang and use an option group to
simplify handling of -f options clang recognizes.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py
index a86ab9b..13d4a54 100644
--- a/tools/ccc/ccclib/Tools.py
+++ b/tools/ccc/ccclib/Tools.py
@@ -312,18 +312,7 @@
         arglist.addLastArg(cmd_args, arglist.parser.wOption)
         arglist.addAllArgs3(cmd_args, arglist.parser.stdOption, arglist.parser.ansiOption, arglist.parser.trigraphsOption)
 
-        arglist.addAllArgs(cmd_args, arglist.parser.f_objcGcOption)
-        arglist.addAllArgs(cmd_args, arglist.parser.f_objcGcOnlyOption)
-        arglist.addAllArgs(cmd_args, arglist.parser.f_objcNonfragileAbiOption)
-        arglist.addAllArgs(cmd_args, arglist.parser.f_nextRuntimeOption)
-        arglist.addAllArgs(cmd_args, arglist.parser.f_gnuRuntimeOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_exceptionsOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_laxVectorConversionsOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_msExtensionsOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_noCaretDiagnosticsOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_noShowColumnOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_pascalStringsOption)
-        arglist.addLastArg(cmd_args, arglist.parser.f_writableStringsOption)
+        arglist.addAllArgs(cmd_args, arglist.parser.Clang_fGroup)
 
         for arg in arglist.getArgs(arglist.parser.XclangOption):
             cmd_args.extend(arglist.getValues(arg))