Frame merge and cleanup for merge.

This commit is contained in:
Zeke Medley 2019-07-23 12:40:21 -07:00
parent 1bf0cd29fd
commit cef94832f1
28 changed files with 1032 additions and 1001 deletions

View file

@ -538,15 +538,15 @@ Val* internal_val(const char* name)
return rval;
}
std::shared_ptr<id_list> gather_outer_ids(Scope* scope, Stmt* body)
id_list gather_outer_ids(Scope* scope, Stmt* body)
{
OuterIDBindingFinder cb(scope);
body->Traverse(&cb);
std::shared_ptr<id_list> idl (new id_list);
id_list idl ( cb.outer_id_references.size() );
for ( size_t i = 0; i < cb.outer_id_references.size(); ++i )
idl->append(cb.outer_id_references[i]->Id());
idl.append(cb.outer_id_references[i]->Id());
return idl;
}