a number of low-level tweaks from code review

This commit is contained in:
Vern Paxson 2021-08-19 10:15:44 -07:00
parent c10737d168
commit b6daf14868
12 changed files with 79 additions and 80 deletions

View file

@ -15,7 +15,7 @@ using namespace std;
CPPCompile::CPPCompile(vector<FuncInfo>& _funcs, ProfileFuncs& _pfs,
const string& gen_name, const string& _addl_name,
CPPHashManager& _hm, bool _update, bool _standalone,
bool report_uncompilable)
bool report_uncompilable)
: funcs(_funcs), pfs(_pfs), hm(_hm),
update(_update), standalone(_standalone)
{

View file

@ -280,10 +280,7 @@ void CPPCompile::AddInit(const Obj* o, const string& init)
void CPPCompile::AddInit(const Obj* o)
{
if ( obj_inits.count(o) == 0 )
{
vector<string> empty;
obj_inits[o] = empty;
}
obj_inits[o] = {};
}
void CPPCompile::NoteInitDependency(const Obj* o1, const Obj* o2)