diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-05-22 23:42:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-22 23:42:31 -0700 |
commit | 451fd23fa2179fa22c831bcf84edd547bfba5cd9 (patch) | |
tree | 8d590cd895cce7d5308cf94e92a5b0e8f36d303e /src/vm/dataimage.h | |
parent | 3eae9c02a9a5eac95bf2900aae3c9e62176bf3c9 (diff) | |
download | coreclr-451fd23fa2179fa22c831bcf84edd547bfba5cd9.tar.gz coreclr-451fd23fa2179fa22c831bcf84edd547bfba5cd9.tar.bz2 coreclr-451fd23fa2179fa22c831bcf84edd547bfba5cd9.zip |
Stop compiling fragile NGen support into the runtime (#24625)
Diffstat (limited to 'src/vm/dataimage.h')
-rw-r--r-- | src/vm/dataimage.h | 18 |
1 files changed, 9 insertions, 9 deletions
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; |