[all-commits] [llvm/llvm-project] 6b9477: [SystemZ] [NFC] Replace SpecialRegisters field wit...

Fanbo Meng via All-commits all-commits at lists.llvm.org
Wed Aug 25 08:28:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b94777be5118377152eef8e4e21c4d0fe4e5bef
      https://github.com/llvm/llvm-project/commit/6b94777be5118377152eef8e4e21c4d0fe4e5bef
  Author: Neumann Hon <neumann.hon at ibm.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZSubtarget.cpp
    M llvm/lib/Target/SystemZ/SystemZSubtarget.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list