[lld] [LLD][COFF] Add support for range extention thunks for ARM64EC targets. (PR #106289)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 03:53:26 PDT 2024


================
@@ -617,18 +617,19 @@ class RangeExtensionThunkARM : public NonSectionCodeChunk {
 
 class RangeExtensionThunkARM64 : public NonSectionCodeChunk {
 public:
-  explicit RangeExtensionThunkARM64(COFFLinkerContext &ctx, Defined *t)
-      : target(t), ctx(ctx) {
+  explicit RangeExtensionThunkARM64(MachineTypes machine, Defined *t)
+      : target(t), machine(machine) {
----------------
mstorsjo wrote:

Maybe add an explicit comment above the class, or somewhere here, saying that contrary to the other classes for other architectures, this can work with both arm64 and arm64ec machine types.

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


More information about the llvm-commits mailing list