diff --git a/src/vm/dllimportcallback.h b/src/vm/dllimportcallback.h index 059906e9e266..936916872c2e 100644 --- a/src/vm/dllimportcallback.h +++ b/src/vm/dllimportcallback.h @@ -569,12 +569,12 @@ class UMEntryThunkCache AppDomain *m_pDomain; }; -#if defined(_TARGET_X86_) && !defined(FEATURE_PAL) +#ifdef _TARGET_X86_ //------------------------------------------------------------------------- // One-time creation of special prestub to initialize UMEntryThunks. //------------------------------------------------------------------------- Stub *GenerateUMThunkPrestub(); -#endif +#endif // _TARGET_X86_ //------------------------------------------------------------------------- // NExport stub diff --git a/src/vm/i386/cgenx86.cpp b/src/vm/i386/cgenx86.cpp index 37fefd015970..5e3c4336a087 100644 --- a/src/vm/i386/cgenx86.cpp +++ b/src/vm/i386/cgenx86.cpp @@ -760,7 +760,6 @@ WORD GetUnpatchedCodeData(LPCBYTE pAddr) #ifndef DACCESS_COMPILE -#if !defined(FEATURE_PAL) //------------------------------------------------------------------------- // One-time creation of special prestub to initialize UMEntryThunks. //------------------------------------------------------------------------- @@ -810,7 +809,6 @@ Stub *GenerateUMThunkPrestub() RETURN psl->Link(SystemDomain::GetGlobalLoaderAllocator()->GetExecutableHeap()); } -#endif // !FEATURE_PAL Stub *GenerateInitPInvokeFrameHelper() { diff --git a/src/vm/prestub.cpp b/src/vm/prestub.cpp index f28bcb10e27d..812baa239919 100644 --- a/src/vm/prestub.cpp +++ b/src/vm/prestub.cpp @@ -1647,9 +1647,9 @@ PCODE MethodDesc::DoPrestub(MethodTable *pDispatchingMT) // use the prestub. //========================================================================== -#if defined(_TARGET_X86_) && !defined(FEATURE_PAL) +#ifdef _TARGET_X86_ static PCODE g_UMThunkPreStub; -#endif +#endif // _TARGET_X86_ #ifndef DACCESS_COMPILE @@ -1676,9 +1676,9 @@ void InitPreStubManager(void) return; } -#if defined(_TARGET_X86_) && !defined(FEATURE_PAL) +#ifdef _TARGET_X86_ g_UMThunkPreStub = GenerateUMThunkPrestub()->GetEntryPoint(); -#endif +#endif // _TARGET_X86_ ThePreStubManager::Init(); } @@ -1687,11 +1687,11 @@ PCODE TheUMThunkPreStub() { LIMITED_METHOD_CONTRACT; -#if defined(_TARGET_X86_) && !defined(FEATURE_PAL) +#ifdef _TARGET_X86_ return g_UMThunkPreStub; -#else +#else // _TARGET_X86_ return GetEEFuncEntryPoint(TheUMEntryPrestub); -#endif +#endif // _TARGET_X86_ } PCODE TheVarargNDirectStub(BOOL hasRetBuffArg)