captures for "when" statements

update Triggers to IntrusivePtr's and simpler AST traversal
introduce IDSet type, migrate associated "ID*" types to "const ID*"
This commit is contained in:
Vern Paxson 2022-01-07 14:50:35 -08:00
parent fa142438fe
commit f895008c34
24 changed files with 648 additions and 202 deletions

View file

@ -33,7 +33,7 @@ public:
void Add(const ID* id) { use_defs.insert(id); }
void Remove(const ID* id) { use_defs.erase(id); }
const std::unordered_set<const ID*>& IterateOver() const { return use_defs; }
const IDSet& IterateOver() const { return use_defs; }
void Dump() const;
void DumpNL() const
@ -43,7 +43,7 @@ public:
}
protected:
std::unordered_set<const ID*> use_defs;
IDSet use_defs;
};
class Reducer;