vhdlpp:: Added ExpUnary::probe_type() function.
This commit is contained in:
parent
9df470c341
commit
652fe378b8
|
|
@ -168,6 +168,7 @@ class ExpUnary : public Expression {
|
||||||
inline const Expression*peek_operand() const { return operand1_; }
|
inline const Expression*peek_operand() const { return operand1_; }
|
||||||
|
|
||||||
const VType*fit_type(Entity*ent, ScopeBase*scope, const VTypeArray*atype) const;
|
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);
|
int elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype);
|
||||||
void visit(ExprVisitor& func);
|
void visit(ExprVisitor& func);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -376,6 +376,11 @@ const VType*ExpUnary::fit_type(Entity*ent, ScopeBase*scope, const VTypeArray*aty
|
||||||
return operand1_->fit_type(ent, scope, atype);
|
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)
|
int ExpUnary::elaborate_expr(Entity*ent, ScopeBase*scope, const VType*ltype)
|
||||||
{
|
{
|
||||||
ivl_assert(*this, ltype != 0);
|
ivl_assert(*this, ltype != 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue