From 451fd23fa2179fa22c831bcf84edd547bfba5cd9 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 22 May 2019 23:42:31 -0700 Subject: Stop compiling fragile NGen support into the runtime (#24625) --- src/vm/dataimage.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/vm/dataimage.h') diff --git a/src/vm/dataimage.h b/src/vm/dataimage.h index 90f3d4cb97..a9375e7a1d 100644 --- a/src/vm/dataimage.h +++ b/src/vm/dataimage.h @@ -7,15 +7,6 @@ #ifndef _DATAIMAGE_H_ #define _DATAIMAGE_H_ -#if defined(FEATURE_PREJIT) && !defined(DACCESS_COMPILE) - -// All we really need is to pre-declare the PrecodeType enum, but g++ doesn't -// support enum pre-declaration, so we need to include the declaration itself. -/*#include "cgensys.h" // needed to include precode.h*/ -#include "precode.h" - -typedef BYTE ZapRelocationType; // IMAGE_REL_XXX enum - // IMAGE_REL_BASED_PTR is architecture specific reloc of virtual address #ifdef _TARGET_64BIT_ #define IMAGE_REL_BASED_PTR IMAGE_REL_BASED_DIR64 @@ -26,6 +17,15 @@ typedef BYTE ZapRelocationType; // IMAGE_REL_XXX enum // Special NGEN-specific relocation type for relative pointer (used to make NGen relocation section smaller) #define IMAGE_REL_BASED_RELPTR 0x7D +#if defined(FEATURE_PREJIT) && !defined(DACCESS_COMPILE) + +// All we really need is to pre-declare the PrecodeType enum, but g++ doesn't +// support enum pre-declaration, so we need to include the declaration itself. +/*#include "cgensys.h" // needed to include precode.h*/ +#include "precode.h" + +typedef BYTE ZapRelocationType; // IMAGE_REL_XXX enum + class CEEPreloader; class ZapImage; -- cgit v1.2.3