Re-commit "Enable DWARF accelerator tables by default when tuning for lldb (-glldb...
authorPavel Labath <pavel@labath.sk>
Thu, 6 Sep 2018 17:01:45 +0000 (17:01 +0000)
committerPavel Labath <pavel@labath.sk>
Thu, 6 Sep 2018 17:01:45 +0000 (17:01 +0000)
commitc1e0c34e4586a98ef883f54320e79984964fcce0
tree9ee0eb53c6ecb56eca058bdb06a458aa6dc4846f
parent21e3ee0afe01569c387f6575acbdf7b78d0bd5db
Re-commit "Enable DWARF accelerator tables by default when tuning for lldb (-glldb => -gpubnames)""

This recommits r341472, which was reverted due to test failures on macos bots.

The issue was that a macos target implies -glldb which, together with
this patch added a -gpubnames switch where there previously wasn't one.
The intentions of those checks was to check that -gpubnames is not
emitted by default so I add an explicit -ggdb arg to those command lines
to get same behavior on all platforms (the fact that -glldb *does* set
-gpubnames is tested by a separate test).

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

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