This is an archive of the discontinued LLVM Phabricator instance.

Don't emit .gnu_pubnames when tuning for LLDB
ClosedPublic

Authored by aprantl on Sep 9 2019, 3:19 PM.

Details

Summary

LLDB reads the various .apple* 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 @dblaikie for pointing this out (a few months back; my backlog is real).

rdar://problem/50142073

Diff Detail

Repository
rL LLVM

Event Timeline

aprantl created this revision.Sep 9 2019, 3:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2019, 3:19 PM

Have you got a link to the original thread where this was discussed/I mentioned it? Want to page in some context to double-check if I had any ideas that might've let this simplify things.

Have you got a link to the original thread where this was discussed/I mentioned it? Want to page in some context to double-check if I had any ideas that might've let this simplify things.

Sure! http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20190422/thread.html#646062

JDevlieghere added inline comments.Sep 9 2019, 4:22 PM
clang/lib/Driver/ToolChains/Clang.cpp
3400 ↗(On Diff #219437)

Is this codepath Darwin only? Even if it's not this should be fine because we should emit debug_names if debugger tuning is lldb.

dblaikie accepted this revision.Sep 9 2019, 4:32 PM

Seems good to me - thanks!

This revision is now accepted and ready to land.Sep 9 2019, 4:32 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2019, 8:52 AM