shift much of the internal use of ID* identifier pointers over to IDPtr objects

This commit is contained in:
Vern Paxson 2025-08-31 08:58:19 -07:00
parent 1c7c1b62f6
commit 693aa244f9
43 changed files with 301 additions and 345 deletions

View file

@ -39,7 +39,7 @@ private:
// If -u is active, checks for whether the given identifier present
// in the given expression is undefined at that point.
void CheckVarUsage(const Expr* e, const ID* id);
void CheckVarUsage(const Expr* e, const IDPtr& id);
// Begin a new confluence block with the given statement.
void StartConfluenceBlock(const Stmt* s);
@ -70,8 +70,7 @@ private:
// statement in the current confluence block. 'e' is the
// expression used to define the identifier, for simple direct
// assignments.
void TrackID(const IDPtr& id, const ExprPtr& e = nullptr) { TrackID(id.get(), e); }
void TrackID(const ID* id, const ExprPtr& e = nullptr);
void TrackID(const IDPtr& id, const ExprPtr& e = nullptr);
// Profile for the function. Currently, all we actually need from
// this is the list of globals and locals.