[lld] [LLD][COFF] Add ARM64EC support to findLineTable. (PR #87240)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 07:52:54 PDT 2024


================
@@ -1735,6 +1735,8 @@ static uint32_t getSecrelReloc(llvm::COFF::MachineTypes machine) {
   case ARMNT:
     return COFF::IMAGE_REL_ARM_SECREL;
   case ARM64:
+  case ARM64EC:
+  case ARM64X:
----------------
cjacek wrote:

Thinking some more about it, this is a common pattern. We could reduce the places that need to explicitly care about about ARM64EC/ARM64X with a helper like `getMachineArchType()` and using `Triple::ArchType` type for the switch. I will prepare a separate PR to discuss it.

https://github.com/llvm/llvm-project/pull/87240


More information about the llvm-commits mailing list