[SystemZ] [NFC] Replace SpecialRegisters field with a unique_ptr instead of a raw...
authorNeumann Hon <neumann.hon@ibm.com>
Wed, 25 Aug 2021 15:24:02 +0000 (11:24 -0400)
committerFanbo Meng <fanbo.meng@ibm.com>
Wed, 25 Aug 2021 15:28:18 +0000 (11:28 -0400)
commit6b94777be5118377152eef8e4e21c4d0fe4e5bef
tree32547b8eeb7eaf62b495312b5008739c559d4b9a
parente5646b9254e0150e7897bd2658fa0b19eef39070
[SystemZ] [NFC] Replace SpecialRegisters field with a unique_ptr instead of a raw pointer.

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.

Reviewed By: uweigand, Kai

Differential Revision: https://reviews.llvm.org/D108639
llvm/lib/Target/SystemZ/SystemZSubtarget.cpp
llvm/lib/Target/SystemZ/SystemZSubtarget.h