This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] [NFC] Replace SpecialRegisters field with a unique_ptr instead of a raw pointer.
ClosedPublic

Authored by Everybody0523 on Aug 24 2021, 9:23 AM.

Details

Summary

This patch replaces the SpecialRegisters field with a unique_ptr instead of a raw pointer. This is better practice, and allows us to remove the definition of the dtor for the SystemZSubtarget class.

Diff Detail

Event Timeline

Everybody0523 created this revision.Aug 24 2021, 9:23 AM
Everybody0523 requested review of this revision.Aug 24 2021, 9:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2021, 9:23 AM
Kai accepted this revision.Aug 24 2021, 11:40 AM

LGTM. Thanks for the cleanup!

This revision is now accepted and ready to land.Aug 24 2021, 11:40 AM