[all-commits] [llvm/llvm-project] 5c1544: [Object][COFF][NFC] Introduce getMachineArchType h...

Jacek Caban via All-commits all-commits at lists.llvm.org
Wed Apr 3 04:28:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c1544c95394b79b377c7137ac34e3e63b6d5ee5
      https://github.com/llvm/llvm-project/commit/5c1544c95394b79b377c7137ac34e3e63b6d5ee5
  Author: Jacek Caban <jacek at codeweavers.com>
  Date:   2024-04-03 (Wed, 03 Apr 2024)

  Changed paths:
    M llvm/include/llvm/Object/WindowsMachineFlag.h
    M llvm/lib/Object/COFFObjectFile.cpp
    M llvm/lib/Object/WindowsResource.cpp

  Log Message:
  -----------
  [Object][COFF][NFC] Introduce getMachineArchType helper. (#87370)

It's a common pattern that we have a machine type, but we don't care
which ARM64* platform we're dealing with. We already have
isAnyArm64 for that, but it does not fit cases where we use a switch
statement. With this helper, it's easy to simplify such cases by using
Triple::ArchType instead of machine type.



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