Traverse function types.

From-SVN: r168125
This commit is contained in:
Ian Lance Taylor 2010-12-21 18:10:13 +00:00
parent c9c1e77571
commit 8cd15b1036
1 changed files with 8 additions and 0 deletions

View File

@ -2644,6 +2644,14 @@ Function::traverse(Traverse* traverse)
{
unsigned int traverse_mask = traverse->traverse_mask();
if ((traverse_mask
& (Traverse::traverse_types | Traverse::traverse_expressions))
!= 0)
{
if (Type::traverse(this->type_, traverse) == TRAVERSE_EXIT)
return TRAVERSE_EXIT;
}
// FIXME: We should check traverse_functions here if nested
// functions are stored in block bindings.
if (this->block_ != NULL