2018-10-31 01:43:02 +00:00
|
|
|
namespace ChocolArm64.Translation
|
|
|
|
{
|
|
|
|
struct ILOpCodeLog : IILEmit
|
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
public string Text { get; }
|
2018-10-31 01:43:02 +00:00
|
|
|
|
|
|
|
public ILOpCodeLog(string text)
|
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
Text = text;
|
2018-10-31 01:43:02 +00:00
|
|
|
}
|
|
|
|
|
2018-12-11 00:58:52 +00:00
|
|
|
public void Emit(ILMethodBuilder context)
|
2018-10-31 01:43:02 +00:00
|
|
|
{
|
2019-02-28 02:03:31 +00:00
|
|
|
context.Generator.EmitWriteLine(Text);
|
2018-10-31 01:43:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|