Split DWARF: Allow -gmlt/-gsplit-dwarf to override rather than complement each other
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 30 Jul 2015 21:42:22 +0000 (21:42 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 30 Jul 2015 21:42:22 +0000 (21:42 +0000)
commitce3e7a614a537327cfb57e1918487ee8c0095b26
tree7aec6921d03c262af8c8703807f008c568887fe8
parent1166f2ff9f30a84fea630888b297bf58c3dba7e9
Split DWARF: Allow -gmlt/-gsplit-dwarf to override rather than complement each other

It doesn't make any sense to enable -gmlt with -gsplit-dwarf, since
-gmlt is designed for on-line symbolication (and -gsplit-dwarf normally
emits all the -gmlt data into the .o anyway - so there's nothing to
split out except redundant/duplicate info).

With this change they override each other, -gmlt -gsplit-dwarf is the
same as -gsplit-dwarf and -gsplit-dwarf -gmlt is the same as -gmlt.

llvm-svn: 243694
clang/lib/Driver/Tools.cpp
clang/test/Driver/split-debug.c