Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-09-21 17:14:15 +0300
committerJan Kotas <jkotas@microsoft.com>2017-09-21 17:14:15 +0300
commit2394767ed3644ae063b7b765e13ca55f28752cec (patch)
treeb6111ab0f3c6dfc2baf1de84dbfdeff56a36aaea /src/Native
parent413c026f2295ab3ef93f16df298b24143caec39d (diff)
Fix incorrect arm ifdef (#4585)
Everywhere in the native code except for two places, we use `_TARGET_ARM_` as a define to identify compilation for ARM32. But at those two places, we use `TARGET_ARM`. This is incorrect since `TARGET_ARM` is not defined anywhere for CoreRT builds. This change replaces those two usages by the `_TARGET_ARM_`.
Diffstat (limited to 'src/Native')
-rw-r--r--src/Native/Runtime/windows/CoffNativeCodeManager.cpp2
-rw-r--r--src/Native/jitinterface/JITCodeManager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Native/Runtime/windows/CoffNativeCodeManager.cpp b/src/Native/Runtime/windows/CoffNativeCodeManager.cpp
index 2f8b02781..3abd0b188 100644
--- a/src/Native/Runtime/windows/CoffNativeCodeManager.cpp
+++ b/src/Native/Runtime/windows/CoffNativeCodeManager.cpp
@@ -149,7 +149,7 @@ static int LookupUnwindInfoForMethod(UInt32 relativePc,
int low,
int high)
{
-#ifdef TARGET_ARM
+#ifdef _TARGET_ARM_
relativePc |= THUMB_CODE;
#endif
diff --git a/src/Native/jitinterface/JITCodeManager.cpp b/src/Native/jitinterface/JITCodeManager.cpp
index e16da72a9..50bfc1747 100644
--- a/src/Native/jitinterface/JITCodeManager.cpp
+++ b/src/Native/jitinterface/JITCodeManager.cpp
@@ -319,7 +319,7 @@ static int LookupUnwindInfoForMethod(UInt32 RelativePc,
int Low,
int High)
{
-#ifdef TARGET_ARM
+#ifdef _TARGET_ARM_
RelativePc |= THUMB_CODE;
#endif