[Driver] Let -gline-tables-only win when it comes after -gmodules.
authorAdrian Prantl <aprantl@apple.com>
Mon, 10 Oct 2016 21:56:20 +0000 (21:56 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 10 Oct 2016 21:56:20 +0000 (21:56 +0000)
commite941fc19642da421860601d43118e03f6de41c37
tree9cc3359c08cef69fa98ac28de09a863963dc4d48
parentbdf1624367261bf99c531e55f5bda1a297348b6b
[Driver] Let -gline-tables-only win when it comes after -gmodules.
The -gmodules option is all about putting debug type info into clang
modules and for line tables the type information is irrelevant, so
combining these two options makes no sense.
This commmit fixes the behavior to match the one  documented on the
clang man page: the last -g... option wins.

<rdar://problem/27059770>

llvm-svn: 283810
clang/include/clang/Driver/Options.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/debug-options.c