static void GetMethodAddressLookup(LinkTableBuilder methodTableBuilder, int startAddress, IReadOnlyList <Method> methods) { var methodAddress = startAddress; foreach (var method in methods) { methodTableBuilder.AddTarget(method.Name, methodAddress); methodAddress += method.Size; } }
private Linker() { _labelTableBuilder = new LinkTableBuilder(); _methodTableBuilder = new LinkTableBuilder(); _comments = new Dictionary <IlAddress, List <string> >(); }