Move RUNTIME_FUNCTION__BeginAddress into clrnt.h (#8632)
authorJonghyun Park <parjong@gmail.com>
Wed, 14 Dec 2016 10:35:21 +0000 (19:35 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 14 Dec 2016 10:35:21 +0000 (11:35 +0100)
RUNTIME_FUNCTION__BeginAddress is defined in corcompile.h for x86, but
is defined in clrnt.h for all the other architectures.

This commit moves RUNTIME_FUNCTION__BeginAddress defines for x86 into
clrnt.h to make it consistent.

src/inc/clrnt.h
src/inc/corcompile.h

index a1eefe849efcb16660c8830934c4fbda26d6c4c0..0e082c79d5c311e07daf9a97c4bb0aa34ce08acf 100644 (file)
@@ -835,13 +835,18 @@ RtlVirtualUnwind_Unsafe(
 //  X86
 //
 
-#if defined(_TARGET_X86_) && !defined(FEATURE_PAL)
+#ifdef _TARGET_X86_
+#ifndef FEATURE_PAL
 
 typedef struct _DISPATCHER_CONTEXT {
     _EXCEPTION_REGISTRATION_RECORD* RegistrationPointer;
 } DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT;
 
-#endif // _TARGET_X86_ && !FEATURE_PAL
+#endif // !FEATURE_PAL
+
+#define RUNTIME_FUNCTION__BeginAddress(prf)             (prf)->BeginAddress
+
+#endif // _TARGET_X86_
 
 #ifdef _TARGET_ARM_
 #include "daccess.h"
index 37c7fba480ed0f295c143bdc93046e823c548701..3b517ae21297acc68501a410c72f5300abea9589 100644 (file)
@@ -85,7 +85,6 @@ typedef struct _RUNTIME_FUNCTION {
 
 typedef DPTR(RUNTIME_FUNCTION) PTR_RUNTIME_FUNCTION;
 
-#define RUNTIME_FUNCTION__BeginAddress(prf)             (prf)->BeginAddress
 
 // Chained unwind info. Used for cold methods.
 #define RUNTIME_FUNCTION_INDIRECT 0x80000000