blob: 1304e9a4cb7b865efcf5c5f09c54152126b766d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//
// Mono.ILASM.TypeInstr
//
// Author(s):
// Jackson Harper (Jackson@LatitudeGeo.com)
//
// (C) 2003 Jackson Harper, All rights reserved
//
using System;
namespace Mono.ILASM {
public class TypeInstr : IInstr {
private PEAPI.TypeOp op;
private BaseTypeRef operand;
public TypeInstr (PEAPI.TypeOp op, BaseTypeRef operand, Location loc)
: base (loc)
{
this.op = op;
this.operand = operand;
}
public override void Emit (CodeGen code_gen, MethodDef meth,
PEAPI.CILInstructions cil)
{
operand.Resolve (code_gen);
cil.TypeInst (op, operand.PeapiType);
}
}
}
|