[all-commits] [llvm/llvm-project] 1d7bb2: [MachO] Give the CPUSubTypeARM64 enum uint32_t typ...

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Tue Aug 27 12:24:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d7bb2bbfa1d50663e2883e0e8e1d2b147103013
      https://github.com/llvm/llvm-project/commit/1d7bb2bbfa1d50663e2883e0e8e1d2b147103013
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-08-27 (Tue, 27 Aug 2024)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MachO.h

  Log Message:
  -----------
  [MachO] Give the CPUSubTypeARM64 enum uint32_t type. NFCI.

We recently added various CPU_SUBTYPE_ARM64E values, notably including
CPU_SUBTYPE_ARM64E_VERSIONED_PTRAUTH_ABI_MASK, which is 0x80000000U.
The enum is better off as a uint32_t to accomodate that.

This also hopefully helps silence GCC warnings reported on a ternary in
CPU_SUBTYPE_ARM64E_WITH_PTRAUTH_VERSION.

The subtype is already generally treated as a uint32_t elsewhere, so
while there, change the new helpers to explicitly pass/return the
subtype as uint32_t, and the individual narrower components as either
bool or unsigned.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list