[all-commits] [llvm/llvm-project] ff5658: [LLD][COFF] Use getMachineArchType in LinkerDriver...

Jacek Caban via All-commits all-commits at lists.llvm.org
Thu Apr 4 05:26:16 PDT 2024


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

  Changed paths:
    M lld/COFF/Driver.cpp
    A lld/test/COFF/print-search-paths-arm64.s
    M llvm/lib/WindowsDriver/MSVCPaths.cpp

  Log Message:
  -----------
  [LLD][COFF] Use getMachineArchType in LinkerDriver::getArch. (#87499)

Adds support for ARM64EC, which should use the same search paths as
ARM64.

It's similar to #87370 and #87495. The test is based on the existing x86
test. Generally ARM64EC libraries are shipped together with native ARM64
libraries (using ECSYMBOLS section mechanism).

getMachineArchType uses Triple::thumb, while the existing
implementation uses Triple::arm. It's ultimately passed to
MSVCPaths.cpp functions, so modify them to accept both forms.



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