[corlib] Add TimeZoneInfo support to xammac
[mono.git] / mcs / class / PEAPI / Code.cs
index 9d68b9c681cd8a68c0122701a5112ce59a1260df..b681a4cf24deabaef67e19b0c29f70ee3f240bf4 100644 (file)
@@ -284,7 +284,6 @@ namespace PEAPI {
        internal class BranchInstr : Instr {
                CILLabel dest;
                private bool shortVer = true;
-               private static readonly byte longInstrOffset = 13;
                private int target = 0;
 
                internal BranchInstr(int inst, CILLabel dst) : base(inst) 
@@ -359,7 +358,6 @@ namespace PEAPI {
                private static readonly ushort MoreSects = 0x8;
                private static readonly ushort InitLocals = 0x10;
                private static readonly uint FatSize = 12;
-               private static readonly uint FatWords = FatSize/4;
                private static readonly byte FatExceptTable = 0x41;
                private static readonly byte SmlExceptTable = 0x01; 
 
@@ -1296,10 +1294,17 @@ namespace PEAPI {
                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)
+               {
                }
 
 
@@ -1332,6 +1337,7 @@ namespace PEAPI {
 
                internal uint GetLabelOffset() 
                {
+                       if (absolute) return offset;
                        if (labInstr == null) return 0;
                        return labInstr.offset + offset;
                }