mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -24,14 +24,14 @@
|
||||
#include "swift/ClangImporter/ClangImporter.h"
|
||||
|
||||
namespace llvm {
|
||||
class FileCollector;
|
||||
class FileCollectorBase;
|
||||
}
|
||||
|
||||
namespace swift {
|
||||
|
||||
DependencyTracker::DependencyTracker(
|
||||
IntermoduleDepTrackingMode Mode,
|
||||
std::shared_ptr<llvm::FileCollector> FileCollector)
|
||||
std::shared_ptr<llvm::FileCollectorBase> FileCollector)
|
||||
// NB: The ClangImporter believes it's responsible for the construction of
|
||||
// this instance, and it static_cast<>s the instance pointer to its own
|
||||
// subclass based on that belief. If you change this to be some other
|
||||
|
||||
Reference in New Issue
Block a user