[llvm] r310223 - [llvm-dlltool] Map the "arm64" machine type

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 6 12:58:13 PDT 2017


Author: mstorsjo
Date: Sun Aug  6 12:58:13 2017
New Revision: 310223

URL: http://llvm.org/viewvc/llvm-project?rev=310223&view=rev
Log:
[llvm-dlltool] Map the "arm64" machine type

Differential Revision: https://reviews.llvm.org/D36365

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

Modified: llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp?rev=310223&r1=310222&r2=310223&view=diff
==============================================================================
--- llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp (original)
+++ llvm/trunk/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp Sun Aug  6 12:58:13 2017
@@ -76,6 +76,7 @@ static MachineTypes getEmulation(StringR
       .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);
 }
 

Modified: llvm/trunk/test/DllTool/coff-exports.def
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DllTool/coff-exports.def?rev=310223&r1=310222&r2=310223&view=diff
==============================================================================
--- llvm/trunk/test/DllTool/coff-exports.def (original)
+++ llvm/trunk/test/DllTool/coff-exports.def Sun Aug  6 12:58:13 2017
@@ -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




More information about the llvm-commits mailing list