diff options
| author | Pavel Labath <pavel@labath.sk> | 2018-09-05 14:38:44 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2018-09-05 14:38:44 +0000 |
| commit | 5795673ef87b57f0b7e78f69e6d4fe8870ff9633 (patch) | |
| tree | eb4f53ae30a11f6f1fd1da151b66c36848765670 /clang/lib | |
| parent | 23ee5cbd2c1f9b097672a607298daa7e6ffeaa42 (diff) | |
| download | bcm5719-llvm-5795673ef87b57f0b7e78f69e6d4fe8870ff9633.tar.gz bcm5719-llvm-5795673ef87b57f0b7e78f69e6d4fe8870ff9633.zip | |
Enable DWARF accelerator tables by default when tuning for lldb (-glldb => -gpubnames)
Summary:
DWARF v5 accelerator tables provide a considerable performance
improvement for lldb and will make the default -glldb behavior same on
all targets (right now we emit apple tables on apple targets, but these
are not controlled by -gpubnames, only by -glldb).
Reviewers: dblaikie
Subscribers: probinson, clayborg, JDevlieghere, aprantl, cfe-commits
Differential Revision: https://reviews.llvm.org/D51576
llvm-svn: 341472
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 79129a7a7c6..959a9b1fbca 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -3072,7 +3072,7 @@ static void RenderDebugOptions(const ToolChain &TC, const Driver &D, const auto *PubnamesArg = Args.getLastArg(options::OPT_ggnu_pubnames, options::OPT_gno_gnu_pubnames, options::OPT_gpubnames, options::OPT_gno_pubnames); - if (SplitDWARFArg || + if (SplitDWARFArg || DebuggerTuning == llvm::DebuggerKind::LLDB || (PubnamesArg && checkDebugInfoOption(PubnamesArg, Args, D, TC))) if (!PubnamesArg || (!PubnamesArg->getOption().matches(options::OPT_gno_gnu_pubnames) && |

