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

@@ -92,8 +92,8 @@ public:
SILFunction *lookupSILFunction(SILFunction *Callee);
SILFunction *
lookupSILFunction(StringRef Name, bool declarationOnly = false,
SILLinkage linkage = SILLinkage::Private);
bool hasSILFunction(StringRef Name, SILLinkage linkage = SILLinkage::Private);
Optional<SILLinkage> linkage = None);
bool hasSILFunction(StringRef Name, Optional<SILLinkage> linkage = None);
SILVTable *lookupVTable(Identifier Name);
SILVTable *lookupVTable(const ClassDecl *C) {
return lookupVTable(C->getName());