[NFC] Delete ReferencedNameTracker

This commit is contained in:
Robert Widmann
2020-05-21 18:52:49 -07:00
parent 537c3867d7
commit acbf927b0e
14 changed files with 22 additions and 280 deletions

View File

@@ -137,9 +137,6 @@ private:
/// This is set during type checking.
TypeRefinementContext *TRC = nullptr;
/// If non-null, used to track name lookups that happen within this file.
Optional<ReferencedNameTracker> RequestReferencedNames;
/// Either the class marked \@NS/UIApplicationMain or the synthesized FuncDecl
/// that calls main on the type marked @main.
Decl *MainDecl = nullptr;
@@ -439,25 +436,6 @@ public:
virtual bool walk(ASTWalker &walker) override;
ReferencedNameTracker *getRequestBasedReferencedNameTracker() {
return RequestReferencedNames ? RequestReferencedNames.getPointer() : nullptr;
}
const ReferencedNameTracker *getRequestBasedReferencedNameTracker() const {
return RequestReferencedNames ? RequestReferencedNames.getPointer() : nullptr;
}
/// Creates and installs the referenced name trackers in this source file.
///
/// This entrypoint must be called before incremental compilation can proceed,
/// else reference dependencies will not be registered.
void createReferencedNameTracker();
/// Retrieves the appropriate referenced name tracker instance.
///
/// If incremental dependencies tracking is not enabled or \c createReferencedNameTracker()
/// has not been invoked on this source file, the result is \c nullptr.
const ReferencedNameTracker *getConfiguredReferencedNameTracker() const;
/// The buffer ID for the file that was imported, or None if there
/// is no associated buffer.
Optional<unsigned> getBufferID() const {