SuperPMI: fix ARM build break
authorBruce Forstall <brucefo@microsoft.com>
Sat, 20 Aug 2016 20:15:09 +0000 (13:15 -0700)
committerBruce Forstall <brucefo@microsoft.com>
Sat, 20 Aug 2016 20:15:09 +0000 (13:15 -0700)
[tfs-changeset: 1623419]

src/ToolBox/superpmi/superpmi/icorjitinfo.cpp

index 508ccc9348157890f77196c98a7270afd2181d7d..41b0195a6d0bab073c4d291eb97b2da56888efa3 100644 (file)
@@ -2030,10 +2030,15 @@ void MyICJI::getModuleNativeEntryPointRange(
 //
 DWORD MyICJI::getExpectedTargetArchitecture()
 {
-#ifdef _TARGET_AMD64_
-    return IMAGE_FILE_MACHINE_AMD64;
-#endif
-#ifdef _TARGET_X86_
+#if defined(_TARGET_X86_)
     return IMAGE_FILE_MACHINE_I386;
+#elif defined(_TARGET_AMD64_)
+    return IMAGE_FILE_MACHINE_AMD64;
+#elif defined(_TARGET_ARM_)
+    return IMAGE_FILE_MACHINE_ARMNT;
+#elif defined(_TARGET_ARM64_)
+    return IMAGE_FILE_MACHINE_ARM64;
+#else
+    return IMAGE_FILE_MACHINE_UNKNOWN;
 #endif
 }