simpler workflow for -O gen-C++ ; also some hooks for -O gen-standalone-C++

This commit is contained in:
Vern Paxson 2021-06-04 17:01:53 -07:00
parent 98f549d65d
commit e1dc3e7b08
4 changed files with 57 additions and 16 deletions

View file

@ -24,6 +24,9 @@ void CPPCompile::DeclareFunc(const FuncInfo& func)
DeclareSubclass(f->GetType(), pf, fname, body, priority, nullptr,
f->Flavor());
if ( f->GetBodies().size() == 1 )
compiled_simple_funcs[f->Name()] = fname;
}
void CPPCompile::DeclareLambda(const LambdaExpr* l, const ProfileFunc* pf)