Fixes for a lookup of functions by name

Among other things it fixes a bug in the function signature optimization where it would use an already existing mangled name for a different function
This commit is contained in:
Roman Levenstein
2017-02-09 17:54:11 -08:00
parent e4af4e1c42
commit 199e76d6d4
11 changed files with 66 additions and 31 deletions

View File

@@ -117,7 +117,8 @@ SILFunction *SILLinkerVisitor::lookupFunction(StringRef Name,
}
/// Process Decl, recursively deserializing any thing Decl may reference.
bool SILLinkerVisitor::hasFunction(StringRef Name, SILLinkage Linkage) {
bool SILLinkerVisitor::hasFunction(StringRef Name,
Optional<SILLinkage> Linkage) {
return Loader->hasSILFunction(Name, Linkage);
}