compiler: Traverse type descriptor expressions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218715
138bc75d-0d04-0410-961f-
82ee72b054a4
{ }
protected:
+ int
+ do_traverse(Traverse*);
+
Type*
do_type()
{ return Type::make_type_descriptor_ptr_type(); }
Type* type_;
};
+int
+Type_descriptor_expression::do_traverse(Traverse* traverse)
+{
+ if (Type::traverse(this->type_, traverse) == TRAVERSE_EXIT)
+ return TRAVERSE_EXIT;
+ return TRAVERSE_CONTINUE;
+}
+
// Dump ast representation for a type descriptor expression.
void