**** Merged from MCS ****
[mono-project.git] / mcs / ilasm / codegen / IInstr.cs
bloba40da7598a050813920b4bd204155a2c38e496cb
1 //
2 // Mono.ILASM.IInstr
3 //
4 // Author(s):
5 // Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
11 using System;
13 namespace Mono.ILASM {
15 public abstract class IInstr {
17 public readonly Location Location;
19 /// <summary>
20 /// </summary>
21 /// <param name="opcode"></param>
22 public IInstr (Location loc)
24 this.Location = (Location) loc.Clone ();
27 /// <summary>
28 /// Add this instruction to the supplied codebuffer
29 /// </summary>
30 public abstract void Emit (CodeGen code_gen, MethodDef meth,
31 PEAPI.CILInstructions cil);