PPCallbacks: Add hook for reaching the end of the main file, and fix DependencyFile to not do work in its destructor.
llvm-svn: 99257
This commit is contained in:
@@ -48,14 +48,15 @@ public:
|
||||
IncludeSystemHeaders(Opts.IncludeSystemHeaders),
|
||||
PhonyTarget(Opts.UsePhonyTargets) {}
|
||||
|
||||
~DependencyFileCallback() {
|
||||
virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
||||
SrcMgr::CharacteristicKind FileType);
|
||||
|
||||
virtual void EndOfMainFile() {
|
||||
OutputDependencyFile();
|
||||
OS->flush();
|
||||
delete OS;
|
||||
OS = 0;
|
||||
}
|
||||
|
||||
virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
|
||||
SrcMgr::CharacteristicKind FileType);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user