Split() public méthode

Splits the node list by moving the next instructions into the new block.
public Split ( BasicBlock newblock ) : void
newblock BasicBlock The newblock.
Résultat void
        /// <summary>
        /// Splits the block.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        protected BasicBlock Split(InstructionNode node)
        {
            var newblock = CreateNewBlock(-1, node.Label);

            node.Split(newblock);

            return(newblock);
        }
        /// <summary>
        /// Splits the block.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        protected BasicBlock Split(InstructionNode node)
        {
            var newblock = CreateNewBlock();

            node.Split(newblock);

            return newblock;
        }