diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-02-09 15:37:46 +0900 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-02-08 22:37:46 -0800 |
commit | a336822c4610391e41d720010ab9f7d9969028ad (patch) | |
tree | f85cec81b953035fd63fa795c768d4941e910007 /src/vm | |
parent | 82c95b0aab3e220748ef8e566cd8ea3c6a9964ec (diff) | |
download | coreclr-a336822c4610391e41d720010ab9f7d9969028ad.tar.gz coreclr-a336822c4610391e41d720010ab9f7d9969028ad.tar.bz2 coreclr-a336822c4610391e41d720010ab9f7d9969028ad.zip |
Clean up EECodeManager::GetGSCookieAddr (#9425)
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/eetwain.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp index 8193c63190..94a1ece428 100644 --- a/src/vm/eetwain.cpp +++ b/src/vm/eetwain.cpp @@ -5451,7 +5451,7 @@ void * EECodeManager::GetGSCookieAddr(PREGDISPLAY pContext, } #endif -#if defined(_TARGET_X86_) +#ifndef USE_GC_INFO_DECODER CodeManStateBuf * stateBuf = (CodeManStateBuf*)pState->stateBuf; /* Extract the necessary information from the info block header */ @@ -5489,7 +5489,7 @@ void * EECodeManager::GetGSCookieAddr(PREGDISPLAY pContext, return PVOID(SIZE_T(pContext->SP + argSize + info->gsCookieOffset)); } -#elif defined(USE_GC_INFO_DECODER) +#else // !USE_GC_INFO_DECODER GcInfoDecoder gcInfoDecoder( gcInfoToken, DECODE_GS_COOKIE @@ -5507,12 +5507,9 @@ void * EECodeManager::GetGSCookieAddr(PREGDISPLAY pContext, } return NULL; -#else - PORTABILITY_WARNING("EECodeManager::GetGSCookieAddr is not implemented on this platform."); - return NULL; -#endif +#endif // USE_GC_INFO_DECODER } -#endif +#endif // !CROSSGEN_COMPILE #ifndef USE_GC_INFO_DECODER /***************************************************************************** |