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);
}
}
-