aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/AILOpCodeCall.cs
blob: 8cd944eb017b1f11515258526951ec66c6225376 (plain)
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 AILOpCodeCall : IAILEmit
    {
        private MethodInfo MthdInfo;

        public AILOpCodeCall(MethodInfo MthdInfo)
        {
            this.MthdInfo = MthdInfo;
        }

        public void Emit(AILEmitter Context)
        {
            Context.Generator.Emit(OpCodes.Call, MthdInfo);
        }
    }
}