Merge pull request #1464 from akoeplinger/fix-portable-target
[mono.git] / mcs / ilasm / codegen / IInstr.cs
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 //
9
10
11 using System;
12
13 namespace Mono.ILASM {
14
15         public abstract class IInstr {
16
17                 public readonly Location Location;
18
19                 /// <summary>
20                 /// </summary>
21                 /// <param name="opcode"></param>
22                 public IInstr (Location loc)
23                 {
24                         this.Location = (Location) loc.Clone ();
25                 }
26
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);
32         }
33
34 }