Move logic for resolving function call overloads.

This code previously lived in FunctionCallExpr but is now part
of FunctionSymbolExpr.  This change doesn't change any current
functionality, but lays groundwork for function pointers in
the language, where we'll want to do function call overload
resolution at other times besides when a function call is
actually being made.
This commit is contained in:
Matt Pharr
2011-10-29 10:46:59 -07:00
parent cc298cd5fe
commit d5a8538192
6 changed files with 555 additions and 527 deletions

View File

@@ -1887,6 +1887,15 @@ FunctionType::SetArgumentDefaults(const std::vector<ConstExpr *> &d) const {
}
std::string
FunctionType::GetArgumentName(int i) const {
if (i >= (int)argNames.size())
return "";
else
return argNames[i];
}
///////////////////////////////////////////////////////////////////////////
// Type