Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

35 lines
670 B
C#

//
// Mono.ILASM.EmitByteIntr.cs
//
// Author(s):
// Rodrigo Kumpera (rkumpera@novell.com)
//
// (C) 2007 Novell, Inc (http://www.novell.com)
//
using System;
using System.Collections;
namespace Mono.ILASM {
public class EmitByteInstr : IInstr {
private int value;
public EmitByteInstr (int value, Location loc)
: base (loc)
{
this.value = value;
}
public override void Emit (CodeGen code_gen, MethodDef meth,
PEAPI.CILInstructions cil)
{
cil.emitbyte ((byte)value);
}
}
}