2018-10-30 21:43:02 -04:00
|
|
|
namespace ChocolArm64.Translation
|
|
|
|
{
|
|
|
|
struct ILOpCodeLog : IILEmit
|
|
|
|
{
|
2019-02-27 21:03:31 -05:00
|
|
|
public string Text { get; }
|
2018-10-30 21:43:02 -04:00
|
|
|
|
|
|
|
public ILOpCodeLog(string text)
|
|
|
|
{
|
2019-02-27 21:03:31 -05:00
|
|
|
Text = text;
|
2018-10-30 21:43:02 -04:00
|
|
|
}
|
|
|
|
|
2018-12-10 19:58:52 -05:00
|
|
|
public void Emit(ILMethodBuilder context)
|
2018-10-30 21:43:02 -04:00
|
|
|
{
|
2019-02-27 21:03:31 -05:00
|
|
|
context.Generator.EmitWriteLine(Text);
|
2018-10-30 21:43:02 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|