Change interfaces to accept a FileCollectorBase

The FileCollectorBase is the common interface shared by different
implementations. In lldb, we implement our own lazy variant that allows
us to do the heavy lifting out-of-process instead of inside the signal
handler.
This commit is contained in:
Jonas Devlieghere
2020-10-26 13:40:46 -07:00
parent 08612ff9fd
commit d01474cc72
4 changed files with 11 additions and 11 deletions

View File

@@ -28,7 +28,7 @@
#include <system_error>
namespace llvm {
class FileCollector;
class FileCollectorBase;
}
namespace clang {
@@ -81,7 +81,7 @@ class DependencyTracker {
public:
explicit DependencyTracker(
IntermoduleDepTrackingMode Mode,
std::shared_ptr<llvm::FileCollector> FileCollector = {});
std::shared_ptr<llvm::FileCollectorBase> FileCollector = {});
/// Adds a file as a dependency.
///