2 // Mono.ILASM.LabelInfo
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
12 namespace Mono
.ILASM
{
14 public class LabelInfo
: IComparable
{
16 public readonly string Name
;
17 public readonly int Pos
;
18 public readonly uint Offset
;
19 public PEAPI
.CILLabel Label
;
20 public bool UseOffset
;
22 public LabelInfo (string name
, int pos
, uint offset
)
31 public LabelInfo (string name
, int pos
)
39 public void Define (PEAPI
.CILLabel label
)
44 public int CompareTo (object obj
)
46 LabelInfo other
= obj
as LabelInfo
;
49 return Pos
.CompareTo(other
.Pos
);
51 throw new InternalErrorException ("object is not a LabelInfo");
54 public override string ToString ()