Split() 공개 메소드

Splits the node list by moving the next instructions into the new block.
public Split ( BasicBlock newblock ) : void
newblock BasicBlock The newblock.
리턴 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;
        }