Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Move RUNTIME_FUNCTION__BeginAddress into clrnt.h (#8632)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
parjong authored and janvorli committed Dec 14, 2016
1 parent 676216a commit 3a8ebe8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/inc/clrnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/inc/corcompile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a8ebe8

Please sign in to comment.