mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
switch to ID definition regions; reworked driver functions; more info for reporting uncompilable functions
This commit is contained in:
parent
83a0d89caf
commit
da6ac0b521
15 changed files with 619 additions and 581 deletions
|
@ -14,28 +14,15 @@ TempVar::TempVar(int num, const TypePtr& t, ExprPtr _rhs) : type(t)
|
|||
rhs = std::move(_rhs);
|
||||
}
|
||||
|
||||
void TempVar::SetAlias(IDPtr _alias, const DefPoints* _dps)
|
||||
void TempVar::SetAlias(IDPtr _alias)
|
||||
{
|
||||
if ( alias )
|
||||
reporter->InternalError("Re-aliasing a temporary");
|
||||
|
||||
if ( ! _dps )
|
||||
{
|
||||
printf("trying to alias %s to %s\n", name.c_str(), _alias->Name());
|
||||
reporter->InternalError("Empty dps for alias");
|
||||
}
|
||||
|
||||
if ( alias == id )
|
||||
reporter->InternalError("Creating alias loop");
|
||||
|
||||
alias = std::move(_alias);
|
||||
dps = _dps;
|
||||
}
|
||||
|
||||
void TempVar::SetDPs(const DefPoints* _dps)
|
||||
{
|
||||
ASSERT(_dps->length() == 1);
|
||||
dps = _dps;
|
||||
}
|
||||
|
||||
} // zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue