This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Add DebugVariableAggregate class
ClosedPublic

Authored by Orlando on Mar 17 2023, 8:10 AM.

Details

Summary

A DebugVariableAggregate is a DebugVariable that discards FragmentInfo; it represents a whole variable instance.

Diff Detail

Event Timeline

Orlando created this revision.Mar 17 2023, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 8:10 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Orlando requested review of this revision.Mar 17 2023, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 8:10 AM
StephenTozer accepted this revision.Mar 22 2023, 6:12 AM

I believe there are a few places in the existing codebase where we intentionally drop fragments that could be updated to use this class; on the whole though, I approve of using a new class to differentiate between a variable fragment that happens to be the whole variable vs an explicit reference to the whole variable regardless of fragmentation.

This revision is now accepted and ready to land.Mar 22 2023, 6:12 AM
This revision was landed with ongoing or failed builds.Mar 22 2023, 7:19 AM
This revision was automatically updated to reflect the committed changes.