Fix crossgen2 compilation with reverse pinvoke (#222)
authorJan Vorlicek <janvorli@microsoft.com>
Tue, 26 Nov 2019 09:40:33 +0000 (10:40 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2019 09:40:33 +0000 (10:40 +0100)
commit3952a3434dc705a4cffe075b2e041910101aa65f
tree7c842432dd42d013fd6d407907130cb78cbfa899
parentd301f5f4013c7fa2ba3efcb424cae9c1fb8cc7fc
Fix crossgen2 compilation with reverse pinvoke (#222)

Crossgen2 is failing to compile assemblies that contain reverse pinvoke
helpers with NotImplementedException.
This change fixes it by throwing RequiresRuntimeJit exception instead
for CORINFO_HELP_JIT_REVERSE_PINVOKE_ENTER and
CORINFO_HELP_JIT_REVERSE_PINVOKE_EXIT
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs