[corlib] Fix tests for watchOS. (#3131)
[mono.git] / mcs / ilasm / codegen / IInstr.cs
index dde7cf7abca056b392611fe403adb6181d409a6c..a40da7598a050813920b4bd204155a2c38e496cb 100644 (file)
@@ -12,14 +12,23 @@ using System;
 
 namespace Mono.ILASM {
 
-        public interface IInstr {
+        public abstract class IInstr {
+
+               public readonly Location Location;
+
+               /// <summary>
+               /// </summary>
+               /// <param name="opcode"></param>
+               public IInstr (Location loc)
+               {
+                       this.Location = (Location) loc.Clone ();
+               }
 
                 /// <summary>
                 ///  Add this instruction to the supplied codebuffer
                 /// </summary>
-                void Emit (CodeGen code_gen, MethodDef meth, 
-                          PEAPI.CILInstructions cil);
+                public abstract void Emit (CodeGen code_gen, MethodDef meth, 
+                                          PEAPI.CILInstructions cil);
         }
 
 }
-