This is an archive of the discontinued LLVM Phabricator instance.

[CodeView] Use non-qualified names for static local variables
ClosedPublic

Authored by smerritt on Aug 8 2022, 8:05 AM.

Details

Summary

Static variables declared within a routine or lexical block should be emitted with a non-qualified name. This allows the variables to be visible to the Visual Studio watch window.

Diff Detail

Event Timeline

smerritt created this revision.Aug 8 2022, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 8:05 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
smerritt requested review of this revision.Aug 8 2022, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 8:05 AM
rnk accepted this revision.Aug 8 2022, 11:01 AM

Thanks, looks good to me.

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
3353

Please update the comment, something like: "For static local variables and Fortran, the scoping..."

This revision is now accepted and ready to land.Aug 8 2022, 11:01 AM
smerritt updated this revision to Diff 451184.Aug 9 2022, 9:23 AM

Update comment per review and restart builds.