Skip to content

Commit

Permalink
vhdlpp:: Added ExpUnary::probe_type() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
orsonmmz committed Dec 3, 2015
1 parent 9df470c commit 652fe37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions vhdlpp/expression.h
Expand Up @@ -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);

Expand Down
5 changes: 5 additions & 0 deletions vhdlpp/expression_elaborate.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 652fe37

Please sign in to comment.