aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Translation/ILOpCodeLog.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Translation/ILOpCodeLog.cs')
-rw-r--r--ChocolArm64/Translation/ILOpCodeLog.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/ChocolArm64/Translation/ILOpCodeLog.cs b/ChocolArm64/Translation/ILOpCodeLog.cs
new file mode 100644
index 00000000..2c77021b
--- /dev/null
+++ b/ChocolArm64/Translation/ILOpCodeLog.cs
@@ -0,0 +1,17 @@
+namespace ChocolArm64.Translation
+{
+ struct ILOpCodeLog : IILEmit
+ {
+ private string _text;
+
+ public ILOpCodeLog(string text)
+ {
+ _text = text;
+ }
+
+ public void Emit(ILEmitter context)
+ {
+ context.Generator.EmitWriteLine(_text);
+ }
+ }
+} \ No newline at end of file