This is an archive of the discontinued LLVM Phabricator instance.

[MIRParser][nfc] Factor out code parsing debug MD nodes
ClosedPublic

Authored by fdeazeve on May 4 2023, 9:54 AM.

Details

Summary

This commit splits a function that both parses MD nodes from YAML into
DI{Expr,Loc,Variable} objects AND adds an entry to the MF variable table, so
that each of those jobs is done separately.

It will enable subsequent patches to reuse the MD node parsing code.

Diff Detail

Event Timeline

fdeazeve created this revision.May 4 2023, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2023, 9:54 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
fdeazeve requested review of this revision.May 4 2023, 9:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2023, 9:54 AM
arsenm accepted this revision.May 4 2023, 10:31 AM
This revision is now accepted and ready to land.May 4 2023, 10:31 AM

Since this is a fairly straightforward NFC patch, I'll go ahead and merge it. Happy to address any concerns afterwards.

This revision was automatically updated to reflect the committed changes.