aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/ILOpCodeLog.cs
blob: 53846f927e49b53b2731ec6e427eb71cd3a7c0fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace ChocolArm64.Translation
{
    struct ILOpCodeLog : IILEmit
    {
        public string Text { get; }

        public ILOpCodeLog(string text)
        {
            Text = text;
        }

        public void Emit(ILMethodBuilder context)
        {
            context.Generator.EmitWriteLine(Text);
        }
    }
}