This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][NFC] Add RawLocationWrapper to wrap location operand metadata [1/x]
ClosedPublic

Authored by Orlando on Mar 13 2023, 2:31 AM.

Details

Summary

RawLocationWrapper wraps the location operand of a debug intrinsic which may be either (wrapped in MetadataAsValue) a DIArgList, ValueAsMetadata, or an empty MDTuple. This class lets us avoid duplicating location handling code in a later patch in this stack.

Diff Detail

Event Timeline

Orlando created this revision.Mar 13 2023, 2:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 2:31 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Orlando requested review of this revision.Mar 13 2023, 2:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 2:31 AM
StephenTozer accepted this revision.Mar 15 2023, 6:45 AM

Stack LGTM, seems like a quite straightforward set of changes.

This revision is now accepted and ready to land.Mar 15 2023, 6:45 AM

Seems like a quite straightforward set of changes.

I was surprised how few changes were required to get this working, which is always a nice feeling.

Thanks for the reviews.