File tree Expand file tree Collapse file tree 4 files changed +0
-23
lines changed Expand file tree Collapse file tree 4 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -257,12 +257,6 @@ class SourceFile final : public FileUnit {
257
257
258
258
bool isImportedImplementationOnly (const ModuleDecl *module ) const ;
259
259
260
- // / This is a hack for 'main' file parsing and the integrated REPL.
261
- // /
262
- // / FIXME: Refactor main file parsing to not pump the parser incrementally.
263
- // / FIXME: Remove the integrated REPL.
264
- void clearLookupCache ();
265
-
266
260
void cacheVisibleDecls (SmallVectorImpl<ValueDecl *> &&globals) const ;
267
261
const SmallVectorImpl<ValueDecl *> &getCachedVisibleDecls () const ;
268
262
Original file line number Diff line number Diff line change @@ -1597,17 +1597,6 @@ void ModuleDecl::clearLookupCache() {
1597
1597
Cache.reset ();
1598
1598
}
1599
1599
1600
- void SourceFile::clearLookupCache () {
1601
- getParentModule ()->clearLookupCache ();
1602
-
1603
- if (!Cache)
1604
- return ;
1605
-
1606
- // Abandon any current cache. We'll rebuild it on demand.
1607
- Cache->invalidate ();
1608
- Cache.reset ();
1609
- }
1610
-
1611
1600
void
1612
1601
SourceFile::cacheVisibleDecls (SmallVectorImpl<ValueDecl*> &&globals) const {
1613
1602
SmallVectorImpl<ValueDecl*> &cached = getCache ().AllVisibleValues ;
Original file line number Diff line number Diff line change @@ -407,10 +407,6 @@ void swift::performNameBinding(SourceFile &SF) {
407
407
return ;
408
408
}
409
409
410
- // Reset the name lookup cache so we find new decls.
411
- // FIXME: This is inefficient.
412
- SF.clearLookupCache ();
413
-
414
410
NameBinder Binder (SF);
415
411
416
412
SmallVector<SourceFile::ImportedModuleDesc, 8 > ImportedModules;
Original file line number Diff line number Diff line change @@ -496,6 +496,4 @@ void TypeChecker::processREPLTopLevel(SourceFile &SF) {
496
496
497
497
TypeChecker::contextualizeTopLevelCode (TLCD);
498
498
}
499
-
500
- SF.clearLookupCache ();
501
499
}
You can’t perform that action at this time.
0 commit comments