From b7167889bc94c084527f184f852b867b2a1c1d56 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Thu, 18 Apr 2019 19:57:17 -0700 Subject: Move R2R-specific code to be outside FEATURE_PREJIT (#24075) This refactoring is preparation for disabling fragile NGen support in the runtime. It keeps fragile-NGen specific code under FEATURE_PREJIT and moves the code required to support R2R to be outside FEATURE_PREJIT. The eventual goal is to compile the runtime without FEATURE_PREJIT defined to avoid fragile-NGen specific overhead. --- src/vm/dwbucketmanager.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vm/dwbucketmanager.hpp') diff --git a/src/vm/dwbucketmanager.hpp b/src/vm/dwbucketmanager.hpp index 0095eb6a1c..9b0d7b12e1 100644 --- a/src/vm/dwbucketmanager.hpp +++ b/src/vm/dwbucketmanager.hpp @@ -982,6 +982,7 @@ bool BaseBucketParamsManager::GetFileVersionInfoForModule(Module* pModule, USHOR PEFile* pFile = pModule->GetFile(); if (pFile) { +#ifdef FEATURE_PREJIT // if we have a native imaged loaded for this module then get the version information from that. if (pFile->IsNativeLoaded()) { @@ -996,6 +997,7 @@ bool BaseBucketParamsManager::GetFileVersionInfoForModule(Module* pModule, USHOR } } } +#endif // if we failed to get the version info from the native image then fall back to the IL image. if (!succeeded) -- cgit v1.2.3