This is an archive of the discontinued LLVM Phabricator instance.

Allow MachineFunction to obtain non-const Function (to enable MIR-level debugify)
ClosedPublic

Authored by dsanders on Apr 3 2020, 4:43 PM.

Details

Summary

To debugify MIR, we need to be able to create metadata and to do that, we
need a non-const Module. However, MachineFunction only had a const reference
to the Function preventing this.

Diff Detail

Event Timeline

dsanders created this revision.Apr 3 2020, 4:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2020, 4:43 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
dsanders added a reviewer: vsk.Apr 3 2020, 5:36 PM
vsk accepted this revision.Apr 6 2020, 12:30 PM

Looks good to me.

This revision is now accepted and ready to land.Apr 6 2020, 12:30 PM
This revision was automatically updated to reflect the committed changes.