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

2
type.h
View File

@@ -677,7 +677,7 @@ public:
const std::vector<const Type *> &GetArgumentTypes() const { return argTypes; }
const std::vector<ConstExpr *> &GetArgumentDefaults() const { return argDefaults; }
const std::string &GetArgumentName(int i) const { return argNames[i]; }
std::string GetArgumentName(int i) const;
/** @todo It would be nice to pull this information together and pass
it when the constructor is called; it's kind of ugly to set it like