Fix ReferencedNameTracker in preparation for batch mode.

This commit is contained in:
David Ungar
2018-02-10 21:08:58 -08:00
parent e7ba87f613
commit 488db9fb9b
14 changed files with 113 additions and 114 deletions

View File

@@ -224,13 +224,11 @@ public:
/// Assumes there is not more than one primary input file, if any.
/// Otherwise, you would need to call getPrimarySpecificPathsForPrimary
/// to tell it which primary input you wanted the outputs for.
///
/// Must not be constructed on-the-fly because some parts of the compiler
/// receive StringRefs to its components, so it must live as long as the
/// compiler.
PrimarySpecificPaths &getPrimarySpecificPathsForAtMostOnePrimary();
PrimarySpecificPaths &getPrimarySpecificPathsForPrimary(StringRef filename);
PrimarySpecificPaths getPrimarySpecificPathsForAtMostOnePrimary() const;
PrimarySpecificPaths
getPrimarySpecificPathsForPrimary(StringRef filename) const;
bool hasDependenciesPath() const;
bool hasReferenceDependenciesPath() const;