public void AddGlobalImp(string module, string fieldname, Bin.TypeID type, bool mutable) { this.indexingGlobal.Add(IndexEntry.CreateImport(this.importGlobalsCt, module, fieldname)); DefGlobal global = new DefGlobal(this.globals.Count, type, mutable); this.globals.Add(global); this.GetOrCreateRecord(module).globals.Add(fieldname, global); ++this.importGlobalsCt; }
public void AddGlobalLoc(DefGlobal df, bool mutable) { this.indexingGlobal.Add(IndexEntry.CreateLocal(this.localGlobalCt)); this.globals.Add(df); ++this.localGlobalCt; }