Elaborate function methods' this argument.

This commit is contained in:
Stephen Williams 2013-03-19 19:57:28 -07:00
parent d0f2a9e961
commit b1613e99e6
1 changed files with 12 additions and 2 deletions

View File

@ -2025,8 +2025,18 @@ NetExpr* PECallFunction::elaborate_expr_method_(Design*des, NetScope*scope,
ivl_assert(*this, res);
vector<NetExpr*>parms;
cerr << get_fileline() << ": PECallFunction::elaborate_expr_method_: "
<< "Stub arguments to the function method." << endl;
NetESignal*ethis = new NetESignal(net);
ethis->set_line(*this);
parms.push_back(ethis);
if (parms_.size() > 0) {
cerr << get_fileline() << ": sorry: "
<< "Arguments (" << parms_.size() << ")"
<< " to function method " << func->basename()
<< " not supported." << endl;
des->errors += 1;
}
NetESignal*eres = new NetESignal(res);
NetEUFunc*call = new NetEUFunc(scope, func, eres, parms, false);