[PATCH] D36365: [llvm-dlltool] Map the "arm64" machine type

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 5 13:03:53 PDT 2017


mstorsjo created this revision.
Herald added subscribers: kristof.beyls, inglorion, mehdi_amini, aemerson.

https://reviews.llvm.org/D36365

Files:
  lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  test/DllTool/coff-exports.def


Index: test/DllTool/coff-exports.def
===================================================================
--- test/DllTool/coff-exports.def
+++ test/DllTool/coff-exports.def
@@ -1,5 +1,7 @@
 ; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
 ; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s
+; RUN: llvm-dlltool -m arm64 --input-def %s --output-lib %t.a
+; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s
 
 LIBRARY test.dll
 EXPORTS
Index: lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
===================================================================
--- lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
+++ lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
@@ -76,6 +76,7 @@
       .Case("i386", IMAGE_FILE_MACHINE_I386)
       .Case("i386:x86-64", IMAGE_FILE_MACHINE_AMD64)
       .Case("arm", IMAGE_FILE_MACHINE_ARMNT)
+      .Case("arm64", IMAGE_FILE_MACHINE_ARM64)
       .Default(IMAGE_FILE_MACHINE_UNKNOWN);
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36365.109891.patch
Type: text/x-patch
Size: 946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170805/681c6b51/attachment.bin>


More information about the llvm-commits mailing list