Exemplo n.º 1
0
        private Block CloneBlockIntoOtherProcedure(Block block, Procedure proc)
        {
            Debug.Print("Cloning {0} to {1}", block.Name, proc);
            var clonedBlock = new BlockCloner(block, proc, Program.CallGraph).Execute();

            return(clonedBlock);
        }
Exemplo n.º 2
0
        private Block?CloneBlockIntoOtherProcedure(Block block, Procedure proc)
        {
            trace.Verbose("Cloning {0} to {1}", block.Id, proc);
            var clonedBlock = new BlockCloner(block, proc, Program.CallGraph).Execute();

            return(clonedBlock);
        }
Exemplo n.º 3
0
        private Block CloneBlockIntoOtherProcedure(Block block, Procedure proc)
        {
            Debug.Print("Cloning {0} to {1}", block.Name, proc);
            var clonedBlock = new BlockCloner(block, proc, program.CallGraph).Execute();

            //ReplaceSuccessorsWith(pred, block, clonedBlock);
            //pred.Procedure.ControlGraph.Blocks.Remove(block);
            return(clonedBlock);
        }