summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyGraph.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-29 01:06:10 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-29 01:06:10 +0000
commit19d78b743f805c5b89c8f6ae644c4cbb9c5f924e (patch)
tree9b97f869331285376c32b1201a48e635407f7014 /clang/lib/Frontend/DependencyGraph.cpp
parent43af5132c51d1dc592132488d1d8afe79057897c (diff)
downloadbcm5719-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/DependencyGraph.cpp')
-rw-r--r--clang/lib/Frontend/DependencyGraph.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/DependencyGraph.cpp b/clang/lib/Frontend/DependencyGraph.cpp
index 7fb4ad72506..28d9c5d320e 100644
--- a/clang/lib/Frontend/DependencyGraph.cpp
+++ b/clang/lib/Frontend/DependencyGraph.cpp
@@ -54,7 +54,8 @@ public:
CharSourceRange FilenameRange,
const FileEntry *File,
StringRef SearchPath,
- StringRef RelativePath);
+ StringRef RelativePath,
+ const Module *Imported);
virtual void EndOfMainFile() {
OutputGraphFile();
@@ -75,7 +76,8 @@ void DependencyGraphCallback::InclusionDirective(SourceLocation HashLoc,
CharSourceRange FilenameRange,
const FileEntry *File,
StringRef SearchPath,
- StringRef RelativePath) {
+ StringRef RelativePath,
+ const Module *Imported) {
if (!File)
return;
OpenPOWER on IntegriCloud