SIL: Remove unnecessary performSILLinking() calls from immediate mode and REPL

This commit is contained in:
Slava Pestov
2018-04-06 16:48:58 -07:00
parent 653ce6162e
commit cc586594d1
5 changed files with 4 additions and 12 deletions

View File

@@ -20,14 +20,9 @@ using namespace swift;
// Top Level Driver
//===----------------------------------------------------------------------===//
void swift::performSILLinking(SILModule *M, bool LinkAll) {
auto LinkMode = LinkAll? SILModule::LinkingMode::LinkAll :
SILModule::LinkingMode::LinkNormal;
void swift::performSILLinking(SILModule *M) {
for (auto &Fn : *M)
M->linkFunction(&Fn, LinkMode);
if (!LinkAll)
return;
M->linkFunction(&Fn, SILModule::LinkingMode::LinkAll);
M->linkAllWitnessTables();
M->linkAllVTables();