Generate overloaded function definitions

This commit is contained in:
2017-05-10 14:21:09 -04:00
parent 192b99f21d
commit 64e1e2b008
7 changed files with 95 additions and 0 deletions

View File

@@ -206,6 +206,14 @@ SymbolTable::LookupPolyFunction(const char *name) {
return polyFunctions[name];
}
void
SymbolTable::GetPolyFunctions(std::vector<std::string> *funcs) {
FunctionMapType::iterator it = polyFunctions.begin();
for (; it != polyFunctions.end(); it++) {
funcs->push_back(it->first);
}
}
bool
SymbolTable::AddType(const char *name, const Type *type, SourcePos pos) {