Mosa.Compiler.Framework.InstructionNode.UpdateBranchTarget C# (CSharp) Method

UpdateBranchTarget() public method

public UpdateBranchTarget ( int index, BasicBlock block ) : void
index int
block BasicBlock
return void
        public void UpdateBranchTarget(int index, BasicBlock block)
        {
            // no change, skip update
            if (branchTargets[index] == block)
                return;

            Block.RemoveBranchInstruction(this);

            branchTargets[index] = block;

            Block.AddBranchInstruction(this);
        }