Don't emit .gnu_pubnames when tuning for LLDB.
authorAdrian Prantl <aprantl@apple.com>
Tue, 10 Sep 2019 15:53:18 +0000 (15:53 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 10 Sep 2019 15:53:18 +0000 (15:53 +0000)
commitf987f561fadc35fb597ce821b2deeb005f40bd77
tree75df08e3370ef8e61e2c1ea0e011b1a8d44fede1
parent8812157b11eac4f8ed578bc9cad19cdd826b3339
Don't emit .gnu_pubnames when tuning for LLDB.

LLDB reads the various .apple* accelerator tables (and in the near
future: the DWARF 5 accelerator tables) which should make
.gnu_pubnames redundant. This changes the Clang driver to no longer
pass -ggnu-pubnames when tuning for LLDB.

Thanks to David Blaikie for pointing this out!
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190422/thread.html#646062

rdar://problem/50142073

Differential Revision: https://reviews.llvm.org/D67373

llvm-svn: 371530
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/debug-options.c