Ejemplo n.º 1
0
 private void DecodeProtectedRegionTargets()
 {
     foreach (var handler in Method.ExceptionHandlers)
     {
         if (handler.TryStart != 0)
         {
             var block = GetBlockByLabel(handler.TryStart);
         }
         if (handler.TryEnd != 0)
         {
             var block = GetBlockByLabel(handler.TryEnd);
         }
         if (handler.HandlerStart != 0)
         {
             var block = GetBlockByLabel(handler.HandlerStart);
             BasicBlocks.AddHeadBlock(block);
             BasicBlocks.AddHandlerHeadBlock(block);
         }
         if (handler.FilterStart != null)
         {
             var block = GetBlockByLabel(handler.FilterStart.Value);
             BasicBlocks.AddHeadBlock(block);
             BasicBlocks.AddHandlerHeadBlock(block);
         }
     }
 }