This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] -fdebug-prefix-map: handle '#line "file"' for asm source
ClosedPublic

Authored by MaskRay on Aug 14 2022, 12:36 AM.

Details

Summary

getContext().setMCLineTableRootFile (from D62074) sets RootFile.Name to
FirstCppHashFilename. RootFile.Name is not processed by -fdebug-prefix-map
and will go to DW_TAG_compile_unit's DT_AT_name and DW_TAG_label's
DW_AT_decl_file. Remap RootFile.Name.

Fix another issue reported by https://github.com/llvm/llvm-project/issues/56609

Diff Detail

Event Timeline

MaskRay created this revision.Aug 14 2022, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2022, 12:36 AM
MaskRay requested review of this revision.Aug 14 2022, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2022, 12:36 AM
raj.khem accepted this revision.Aug 14 2022, 8:27 AM

I have tested this revision and it fixes the problem I was seeing

This revision is now accepted and ready to land.Aug 14 2022, 8:27 AM
MaskRay updated this revision to Diff 452528.Aug 14 2022, 8:38 AM

try fixing Windows path separator