diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-11 17:29:44 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-11 17:29:44 +0000 |
commit | 7a70d2f11bb1db242d004ca950ce858b09b80d0a (patch) | |
tree | ae934230c795b1011ce649698b0b8732c8b5ddfd /clang/lib/Frontend/DependencyFile.cpp | |
parent | ad018f10bcfc58e33dc52773b523360441adba2e (diff) | |
download | bcm5719-llvm-7a70d2f11bb1db242d004ca950ce858b09b80d0a.tar.gz bcm5719-llvm-7a70d2f11bb1db242d004ca950ce858b09b80d0a.zip |
For the FileChanged Preprocessor callback, when exiting a file, pass its FileID.
llvm-svn: 141681
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r-- | clang/lib/Frontend/DependencyFile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index db43ab9bbe1..ff3a12392c9 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -52,7 +52,8 @@ public: AddMissingHeaderDeps(Opts.AddMissingHeaderDeps) {} virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, - SrcMgr::CharacteristicKind FileType); + SrcMgr::CharacteristicKind FileType, + FileID PrevFID); virtual void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, @@ -107,7 +108,8 @@ bool DependencyFileCallback::FileMatchesDepCriteria(const char *Filename, void DependencyFileCallback::FileChanged(SourceLocation Loc, FileChangeReason Reason, - SrcMgr::CharacteristicKind FileType) { + SrcMgr::CharacteristicKind FileType, + FileID PrevFID) { if (Reason != PPCallbacks::EnterFile) return; |