Revert "Merge remote-tracking branch 'origin/topic/vern/at-if-analyze'"

This reverts commit 4e797ddbbc, reversing
changes made to 3ac28ba5a2.
This commit is contained in:
Tim Wojtulewicz 2023-05-31 09:20:33 +02:00
parent cfbb7eb8ee
commit 5a3abbe364
78 changed files with 340 additions and 1286 deletions

View file

@ -46,19 +46,6 @@ const IDPtr& Scope::Find(std::string_view name) const
return ID::nil;
}
void Scope::RemoveGlobal(std::string name, IDPtr /* gid */)
{
ASSERT(this == global_scope());
local.erase(name);
// We could remove the identifier from ordered_vars, but for now
// we skip doing so because (1) the only removals we do are for global
// scope (per the method name), and the only use of ordered_vars is
// for traversing function parameters (i.e., non-global scope), and
// (2) it would be a pain to do so given the current data structure.
}
IDPtr Scope::GenerateTemporary(const char* name)
{
return make_intrusive<ID>(name, SCOPE_FUNCTION, false);