aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/ILOpCodeCall.cs
blob: 0b591d46cec3b3a69b550bdf2202abd113bfb00b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
        }
    }
}