private void ForwardDeclare(Assembly assembly) { // Forward declare procedures foreach (var proc in assembly.Procedures) { var x86proc = new X86Proc(GetSymbolName(proc)); procs[proc] = x86proc; // Forward declare each basic block inside foreach (var bb in proc.BasicBlocks) { basicBlocks[bb] = new X86BasicBlock(x86proc, formatOptions.Escape(bb.Name)); } } }
public X86BasicBlock(X86Proc proc, string?name = null) { Proc = proc; Name = name; }