[driver] Completely rework how superfluous options are stripped out of the crash
authorChad Rosier <mcrosier@apple.com>
Wed, 31 Oct 2012 18:31:33 +0000 (18:31 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 31 Oct 2012 18:31:33 +0000 (18:31 +0000)
commit83f16bf4453637af89a90a5daa76dff9a703033f
tree184ded813d71a04009fe8395a562a962c55ec9d8
parent9936f137eb6a7817cf6638ba2100e8026c4f4166
[driver] Completely rework how superfluous options are stripped out of the crash
diagnostics script.

This addresses the FIXME pertaining to quoted arguments.  We also delineate
between those flags that have an argument (e.g., -D macro, -MF file) and
those that do not (e.g., -M, -MM, -MG).  Finally, we add the -dwarf-debug-flags
to the list of flags to be removed.
rdar://12329974

llvm-svn: 167152
clang/include/clang/Driver/Compilation.h
clang/lib/Driver/Compilation.cpp
clang/lib/Driver/Driver.cpp
clang/test/Driver/crash-report.c