OptimizeBranch() static private method

static private OptimizeBranch ( Instruction instruction ) : bool
instruction Mono.Cecil.Cil.Instruction
return bool
 private static void OptimizeBranches(MethodBody body)
 {
     MethodBodyRocks.ComputeOffsets(body);
     foreach (Instruction instruction in body.Instructions)
     {
         if (instruction.OpCode.OperandType != OperandType.InlineBrTarget || !MethodBodyRocks.OptimizeBranch(instruction))
         {
             continue;
         }
         MethodBodyRocks.ComputeOffsets(body);
     }
 }