diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2015-05-06 23:43:46 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-05-07 12:03:00 -0700 |
commit | 484a2cf0b0c4e304a5093ec26e07fe41f8896c3c (patch) | |
tree | 348b56df4cdb235bb87ba9bc9118711c8db13bfd /src/vm/pefile.inl | |
parent | c6efc7047edb38075310cfef8ea28b91717b8108 (diff) | |
download | coreclr-484a2cf0b0c4e304a5093ec26e07fe41f8896c3c.tar.gz coreclr-484a2cf0b0c4e304a5093ec26e07fe41f8896c3c.tar.bz2 coreclr-484a2cf0b0c4e304a5093ec26e07fe41f8896c3c.zip |
Merge changes from parent branch
[tfs-changeset: 1466545]
Diffstat (limited to 'src/vm/pefile.inl')
-rw-r--r-- | src/vm/pefile.inl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vm/pefile.inl b/src/vm/pefile.inl index d43d2b7ca2..07d42d5859 100644 --- a/src/vm/pefile.inl +++ b/src/vm/pefile.inl @@ -772,6 +772,28 @@ inline BOOL PEFile::IsIbcOptimized() return FALSE; } +inline BOOL PEFile::IsILImageReadyToRun() +{ + WRAPPER_NO_CONTRACT; + +#ifdef FEATURE_PREJIT + if (IsNativeLoaded()) + { + CONSISTENCY_CHECK(HasNativeImage()); + + return GetLoadedNative()->GetNativeILHasReadyToRunHeader(); + } + else +#endif // FEATURE_PREJIT + if (HasOpenedILimage()) + { + return GetLoadedIL()->HasReadyToRunHeader(); + } + else + { + return FALSE; + } +} inline WORD PEFile::GetSubsystem() { |