[llvm] [llvm-lib][Object][COFF] Use ARM64 machine type for import library descriptor objects. (PR #78537)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 18:58:08 PST 2024
================
@@ -5,28 +5,30 @@ RUN: llvm-lib -machine:arm64ec -def:test.def -out:test.lib
RUN: llvm-nm --print-armap test.lib | FileCheck -check-prefix=ARMAP %s
-ARMAP: Archive EC map
+ARMAP: Archive map
ARMAP-NEXT: __IMPORT_DESCRIPTOR_test in test.dll
ARMAP-NEXT: __NULL_IMPORT_DESCRIPTOR in test.dll
+ARMAP-NEXT: test_NULL_THUNK_DATA in test.dll
+ARMAP-EMPTY:
+ARMAP-NEXT: Archive EC map
ARMAP-NEXT: __imp_dataexp in test.dll
ARMAP-NEXT: __imp_funcexp in test.dll
ARMAP-NEXT: funcexp in test.dll
-ARMAP-NEXT: test_NULL_THUNK_DATA in test.dll
RUN: llvm-readobj test.lib | FileCheck -check-prefix=READOBJ %s
READOBJ: File: test.lib(test.dll)
-READOBJ-NEXT: Format: COFF-ARM64EC
+READOBJ-NEXT: Format: COFF-ARM64
----------------
MaskRay wrote:
How about `READOBJ-NEXT: Format: COFF-ARM64{{$}}` to ensure the pattern will not match `COFF-ARM64EC` ?
https://github.com/llvm/llvm-project/pull/78537
More information about the llvm-commits
mailing list