Skip to content

Commit e3f8d4a

Browse files
author
thk123
committed
Added constructor to auxilary symbol instead of a helper function
The auxilary function had the same flags requried for the test, so added a utility constructor that allows specifying of name and type.
1 parent 3185028 commit e3f8d4a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/util/symbol.h

+8
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ class auxiliary_symbolt:public symbolt
145145
is_file_local=true;
146146
is_auxiliary=true;
147147
}
148+
149+
auxiliary_symbolt(const irep_idt &name, const typet &type):
150+
auxiliary_symbolt()
151+
{
152+
this->name=name;
153+
this->base_name=name;
154+
this->type=type;
155+
}
148156
};
149157

150158
/*! \brief Symbol table entry of function parameter

0 commit comments

Comments
 (0)