vhdlpp: More descriptive error message for a missing function.
This commit is contained in:
parent
e44010c2a3
commit
acb4ca8e47
|
|
@ -583,7 +583,10 @@ int ExpFunc::emit(ostream&out, Entity*ent, ScopeBase*scope)
|
||||||
{
|
{
|
||||||
int errors = 0;
|
int errors = 0;
|
||||||
|
|
||||||
ivl_assert(*this, def_);
|
if(!def_) {
|
||||||
|
cerr << get_fileline() << ": error: unknown function: " << name_ << endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// If this function has an elaborated definition, and if
|
// If this function has an elaborated definition, and if
|
||||||
// that definition is in a package, then include the
|
// that definition is in a package, then include the
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue