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:
9
type.cpp
9
type.cpp
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user