Deprecate ID::Type(), replace with GetType()

This commit is contained in:
Jon Siwek 2020-05-07 20:47:33 -07:00
parent 6e647416d5
commit 3f07c57523
24 changed files with 111 additions and 106 deletions

View file

@ -271,7 +271,7 @@ BroFunc::BroFunc(ID* arg_id, IntrusivePtr<Stmt> arg_body, id_list* aggr_inits,
: Func(BRO_FUNC)
{
name = arg_id->Name();
type = {NewRef{}, arg_id->Type()};
type = arg_id->GetType();
frame_size = arg_frame_size;
if ( arg_body )
@ -593,7 +593,7 @@ BuiltinFunc::BuiltinFunc(built_in_func arg_func, const char* arg_name,
if ( id->HasVal() )
reporter->InternalError("built-in function %s multiply defined", Name());
type = {NewRef{}, id->Type()};
type = id->GetType();
id->SetVal(make_intrusive<Val>(this));
}