* Code.cs (CILLabel): Add new constructor to signal that
a label is an absolute il offset. This is required by exception
handling declarations that use offsets and not labels.
svn path=/trunk/mcs/; revision=130691
+2009-03-31 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * Code.cs (CILLabel): Add new constructor to signal that
+ a label is an absolute il offset. This is required by exception
+ handling declarations that use offsets and not labels.
+
2008-06-02 Ankit Jain <jankit@novell.com>
Fix bug #367114.
int tide = 0;
CILInstruction labInstr;
uint offset = 0;
+ bool absolute;
- public CILLabel (uint offset)
+
+ public CILLabel (uint offset, bool absolute)
{
this.offset = offset;
+ this.absolute = absolute;
+ }
+
+ public CILLabel (uint offset) : this (offset, false)
+ {
}
internal uint GetLabelOffset()
{
+ if (absolute) return offset;
if (labInstr == null) return 0;
return labInstr.offset + offset;
}