aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/ILOpCodeLoadField.cs
blob: f0507ac2264868eb552d84fbd8790fabe3d064e4 (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 ILOpCodeLoadField : IILEmit
    {
        public FieldInfo Info { get; }

        public ILOpCodeLoadField(FieldInfo info)
        {
            Info = info;
        }

        public void Emit(ILMethodBuilder context)
        {
            context.Generator.Emit(OpCodes.Ldfld, Info);
        }
    }
}