a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
40 lines
858 B
C#
40 lines
858 B
C#
//
|
|
// Mono.ILASM.HandlerBlock
|
|
//
|
|
// Author(s):
|
|
// Jackson Harper (Jackson@LatitudeGeo.com)
|
|
//
|
|
// (C) 2003 Jackson Harper (Jackson@LatitudeGeo.com)
|
|
//
|
|
|
|
|
|
using System;
|
|
|
|
namespace Mono.ILASM {
|
|
|
|
public class HandlerBlock {
|
|
|
|
private LabelInfo from_label;
|
|
private LabelInfo to_label;
|
|
|
|
public HandlerBlock (LabelInfo from_label, LabelInfo to_label)
|
|
{
|
|
this.from_label = from_label;
|
|
this.to_label = to_label;
|
|
}
|
|
|
|
public PEAPI.CILLabel GetFromLabel (CodeGen code_gen, MethodDef method)
|
|
{
|
|
return from_label.Label;
|
|
}
|
|
|
|
public PEAPI.CILLabel GetToLabel (CodeGen code_gen, MethodDef method)
|
|
{
|
|
return to_label.Label;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|