diff options
Diffstat (limited to 'mcs/ilasm/codegen/IInstr.cs')
-rw-r--r-- | mcs/ilasm/codegen/IInstr.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mcs/ilasm/codegen/IInstr.cs b/mcs/ilasm/codegen/IInstr.cs new file mode 100644 index 00000000000..a40da7598a0 --- /dev/null +++ b/mcs/ilasm/codegen/IInstr.cs @@ -0,0 +1,34 @@ +// +// Mono.ILASM.IInstr +// +// Author(s): +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Jackson Harper, All rights reserved +// + + +using System; + +namespace Mono.ILASM { + + 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> + public abstract void Emit (CodeGen code_gen, MethodDef meth, + PEAPI.CILInstructions cil); + } + +} |