]> granicus.if.org Git - clang/commit
[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)
commit24a15d69fc8bff2dd1c53bd4ecf59b5b931326d2
tree77cd0c3c128bcf5f8981825dbeecab4447348295
parente6f1bd24943e02557efac28676e680de92a40247
[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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283810 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
test/Driver/debug-options.c