public void AddBranch(FleeIlGenerator ilg, Label target) { var startLoc = new IlLocation(ilg.Length); var bi = new BranchInfo(startLoc, target); this.myBranchInfos.Add(bi); }
public bool IsLongBranch(FleeIlGenerator ilg, Label target) { var startLoc = new IlLocation(ilg.Length); var bi = new BranchInfo(startLoc, target); var index = this.myBranchInfos.IndexOf(bi); bi = this.myBranchInfos[index]; return(bi.IsLongBranch); }
public BranchInfo(IlLocation startLocation, Label endLabel) { this.myStart = startLocation; this.myLabel = endLabel; this.myEnd = new IlLocation(); }