vhdlpp:: Added ExpUnary::probe_type() function.

This commit is contained in:
Maciej Suminski 2015-12-03 17:54:22 +01:00
parent 9df470c341
commit 652fe378b8
2 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,7 @@ class ExpUnary : public Expression {
inline const Expression*peek_operand() const { return operand1_; }
const VType*fit_type(Entity*ent, ScopeBase*scope, const VTypeArray*atype) const;
const VType*probe_type(Entity*ent, ScopeBase*scope) const;
int elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype);
void visit(ExprVisitor& func);

View File

@ -376,6 +376,11 @@ const VType*ExpUnary::fit_type(Entity*ent, ScopeBase*scope, const VTypeArray*aty
return operand1_->fit_type(ent, scope, atype);
}
const VType*ExpUnary::probe_type(Entity*ent, ScopeBase*scope) const
{
return operand1_->probe_type(ent, scope);
}
int ExpUnary::elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype)
{
ivl_assert(*this, ltype != 0);