Remove cls_val parameter from old symbol_search

There are no users of the old symbol_search that need the cls_val result.
Remove it as a output parameter of the function.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-12-24 14:06:37 -08:00
parent b74059eaa9
commit dc10710198
3 changed files with 4 additions and 10 deletions

View File

@ -3812,7 +3812,6 @@ NetProc* PCallTask::elaborate_method_(Design*des, NetScope*scope,
use_path.pop_back();
NetNet *net;
ivl_type_t cls_val = 0;
const NetExpr *par;
ivl_type_t par_type = 0;
NetEvent *eve;
@ -3838,7 +3837,7 @@ NetProc* PCallTask::elaborate_method_(Design*des, NetScope*scope,
// resolve to a class object. Note that the "this" symbol
// (internally represented as "@") is handled by there being a
// "this" object in the instance scope.
symbol_search(this, des, scope, use_path, net, par, eve, par_type, cls_val);
symbol_search(this, des, scope, use_path, net, par, eve, par_type);
if (net == 0)
return 0;

View File

@ -136,8 +136,7 @@ extern NetScope* symbol_search(const LineInfo*li,
NetNet*&net, /* net/reg */
const NetExpr*&par,/* parameter/expr */
NetEvent*&eve, /* named event */
ivl_type_t&par_type,
ivl_type_t&cls_val);
ivl_type_t&par_type);
inline NetScope* symbol_search(const LineInfo*li,
Design*des,
@ -148,9 +147,8 @@ inline NetScope* symbol_search(const LineInfo*li,
NetEvent*&eve /* named event */)
{
ivl_type_t par_type;
ivl_type_t cls_val;
return symbol_search(li, des, start, path, net, par, eve,
par_type, cls_val);
par_type);
}
/*

View File

@ -311,14 +311,12 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope,
NetNet*&net,
const NetExpr*&par,
NetEvent*&eve,
ivl_type_t&par_type,
ivl_type_t&cls_val)
ivl_type_t&par_type)
{
symbol_search_results recurse;
bool flag = symbol_search(li, des, scope, path, &recurse);
net = 0;
cls_val = 0;
par = 0;
par_type = 0;
eve = 0;
@ -335,7 +333,6 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope,
// Convert the extended results to the compatible results.
net = recurse.net;
cls_val = recurse.cls_val;
par = recurse.par_val;
par_type = recurse.type;
eve = recurse.eve;