Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / ilasm / codegen / EmitByteInstr.cs
1 //
2 // Mono.ILASM.EmitByteIntr.cs
3 //
4 // Author(s):
5 //  Rodrigo Kumpera (rkumpera@novell.com)
6 //
7 // (C) 2007 Novell, Inc (http://www.novell.com)
8 //
9
10
11 using System;
12 using System.Collections;
13
14 namespace Mono.ILASM {
15
16         public class EmitByteInstr : IInstr {
17
18                 private int value;
19
20                 public EmitByteInstr (int value, Location loc)
21                         : base (loc)
22                 {
23                         this.value = value;
24                 }
25
26                 public override void Emit (CodeGen code_gen, MethodDef meth,
27                                            PEAPI.CILInstructions cil)
28                 {
29                         cil.emitbyte ((byte)value);
30                 }
31         }
32
33 }
34