diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-09-29 01:06:10 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-09-29 01:06:10 +0000 |
commit | 19d78b743f805c5b89c8f6ae644c4cbb9c5f924e (patch) | |
tree | 9b97f869331285376c32b1201a48e635407f7014 /clang/lib/Frontend/DependencyFile.cpp | |
parent | 43af5132c51d1dc592132488d1d8afe79057897c (diff) | |
download | bcm5719-llvm-19d78b743f805c5b89c8f6ae644c4cbb9c5f924e.tar.gz bcm5719-llvm-19d78b743f805c5b89c8f6ae644c4cbb9c5f924e.zip |
For PPCallbacks::InclusionDirective() add a parameter for the module, whenever
an inclusion directive was automatically turned into a module import, and
PPCallbacks::moduleImport() for an explicit module import.
llvm-svn: 164874
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 adc96604e7e..53ea8befbc0 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -62,7 +62,8 @@ public: CharSourceRange FilenameRange, const FileEntry *File, StringRef SearchPath, - StringRef RelativePath); + StringRef RelativePath, + const Module *Imported); virtual void EndOfMainFile() { OutputDependencyFile(); @@ -135,7 +136,8 @@ void DependencyFileCallback::InclusionDirective(SourceLocation HashLoc, CharSourceRange FilenameRange, const FileEntry *File, StringRef SearchPath, - StringRef RelativePath) { + StringRef RelativePath, + const Module *Imported) { if (!File) { if (AddMissingHeaderDeps) AddFilename(FileName); |