mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 12:49:15 +00:00
20 lines
407 B
C#
20 lines
407 B
C#
|
using System.Reflection;
|
||
|
using System.Reflection.Emit;
|
||
|
|
||
|
namespace ChocolArm64.Translation
|
||
|
{
|
||
|
struct ILOpCodeCall : IILEmit
|
||
|
{
|
||
|
private MethodInfo _mthdInfo;
|
||
|
|
||
|
public ILOpCodeCall(MethodInfo mthdInfo)
|
||
|
{
|
||
|
_mthdInfo = mthdInfo;
|
||
|
}
|
||
|
|
||
|
public void Emit(ILEmitter context)
|
||
|
{
|
||
|
context.Generator.Emit(OpCodes.Call, _mthdInfo);
|
||
|
}
|
||
|
}
|
||
|
}
|