This is an archive of the discontinued LLVM Phabricator instance.

[Remarks][Driver] Ask for line tables when remarks are enabled
ClosedPublic

Authored by thegameg on Dec 10 2019, 8:56 PM.

Details

Summary

Serialized remarks contain debug locations for each remark, by storing a file path, a line, and a column.

Also, remarks support being embedded in a .dSYM bundle using a separate section in object files, that is found by dsymutil through the debug map.

In order for tools to map addresses to source and display remarks in the source, we need line tables, and in order for dsymutil to find the object files containing the remark section, we need to keep the debug map around.

Diff Detail

Event Timeline

thegameg created this revision.Dec 10 2019, 8:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2019, 8:56 PM
aprantl added inline comments.Dec 11 2019, 8:39 AM
clang/lib/Driver/ToolChains/Clang.cpp
3724

DebugInfoKind < codegenoptions::DebugDirectivesOnly
lest someone will sneak in another enumerator without updating this code.

thegameg updated this revision to Diff 233459.Dec 11 2019, 3:30 PM
thegameg marked an inline comment as done.
aprantl accepted this revision.Dec 11 2019, 3:42 PM
aprantl added a project: debug-info.
This revision is now accepted and ready to land.Dec 11 2019, 3:42 PM
JDevlieghere accepted this revision.Dec 11 2019, 5:08 PM
This revision was automatically updated to reflect the committed changes.