vhdlpp: Added ExpFunc::func_ret_type() method.

This commit is contained in:
Maciej Suminski 2015-01-22 17:04:23 +01:00
parent 839f9cd7ae
commit 777e7e0a3d
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@
*/
# include "expression.h"
# include "subprogram.h"
# include "parse_types.h"
# include "scope.h"
# include <iostream>
@ -283,6 +284,11 @@ ExpFunc::~ExpFunc()
delete argv_[idx];
}
const VType* ExpFunc::func_ret_type() const
{
return def_->peek_return_type();
}
ExpInteger::ExpInteger(int64_t val)
: value_(val)
{

View File

@ -477,6 +477,7 @@ class ExpFunc : public Expression {
inline perm_string func_name() const { return name_; }
inline size_t func_args() const { return argv_.size(); }
inline const Expression*func_arg(size_t idx) const { return argv_[idx]; }
const VType*func_ret_type() const;
public: // Base methods
int elaborate_expr(Entity*ent, Architecture*arc, const VType*ltype);