This is an archive of the discontinued LLVM Phabricator instance.

Debug Info: Mark os_log helper functions as artificial
ClosedPublic

Authored by aprantl on May 22 2020, 5:36 PM.

Details

Summary

The os_log helper functions are linkonce_odr and supposed to be uniqued across TUs, so attachine a DW_AT_decl_line on it is highly misleading. By setting the function decl to implicit, CGDebugInfo properly marks the functions as artificial and uses a default file / line 0 location for the function.

rdar://problem/63450824

Diff Detail

Event Timeline

aprantl created this revision.May 22 2020, 5:36 PM
aprantl edited the summary of this revision. (Show Details)May 22 2020, 5:36 PM
vsk accepted this revision.May 22 2020, 6:16 PM

Thanks, lgtm!

This revision is now accepted and ready to land.May 22 2020, 6:16 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2020, 9:12 AM