forked from OSchip/llvm-project
Make ModuleDependencyCollector's method virtual (NFC)
For reproducers in LLDB we want to hook up into the existing clang infrastructure. To make that happen we need to be able to override the ModuleDependencyCollector's methods. The alternative was to inherit from the DependencyCollector directly, but that would mean re-implementing the ModuleDependencyListener and the ModuleDependencyPPCallbacks and ModuleDependencyMMCallbacks. Differential revision: https://reviews.llvm.org/D58072 llvm-svn: 353882
This commit is contained in:
parent
41bbc6e04c
commit
75b44d75f6
|
@ -145,18 +145,18 @@ public:
|
|||
~ModuleDependencyCollector() override { writeFileMap(); }
|
||||
|
||||
StringRef getDest() { return DestDir; }
|
||||
bool insertSeen(StringRef Filename) { return Seen.insert(Filename).second; }
|
||||
void addFile(StringRef Filename, StringRef FileDst = {});
|
||||
virtual bool insertSeen(StringRef Filename) { return Seen.insert(Filename).second; }
|
||||
virtual void addFile(StringRef Filename, StringRef FileDst = {});
|
||||
|
||||
void addFileMapping(StringRef VPath, StringRef RPath) {
|
||||
virtual void addFileMapping(StringRef VPath, StringRef RPath) {
|
||||
VFSWriter.addFileMapping(VPath, RPath);
|
||||
}
|
||||
|
||||
void attachToPreprocessor(Preprocessor &PP) override;
|
||||
void attachToASTReader(ASTReader &R) override;
|
||||
|
||||
void writeFileMap();
|
||||
bool hasErrors() { return HasErrors; }
|
||||
virtual void writeFileMap();
|
||||
virtual bool hasErrors() { return HasErrors; }
|
||||
};
|
||||
|
||||
/// AttachDependencyGraphGen - Create a dependency graph generator, and attach
|
||||
|
|
Loading…
Reference in New Issue