ccc: Forward -dM to clang.

llvm-svn: 63955
This commit is contained in:
Daniel Dunbar 2009-02-06 19:26:48 +00:00
parent 421d40c22b
commit 1a5f04dc66
2 changed files with 3 additions and 0 deletions

View File

@ -745,6 +745,7 @@ class OptionParser:
# FIXME: Naming convention.
self.dGroup = OptionGroup('-d')
self.dAOption = self.addOption(FlagOption('-dA', self.dGroup))
self.dMOption = self.addOption(FlagOption('-dM', self.dGroup))
self.dOption = self.addOption(FlagOption('-d', self.dGroup))
# Use a group for this in anticipation of adding more -d

View File

@ -321,6 +321,8 @@ class Clang_CompileTool(Tool):
arglist.addAllArgs(cmd_args, arglist.parser.Clang_fGroup)
arglist.addLastArg(cmd_args, arglist.parser.dMOption)
for arg in arglist.getArgs(arglist.parser.XclangOption):
cmd_args.extend(arglist.getValues(arg))