From f8afcffe6a0213760b64c211812b1750e1e1e967 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 29 Sep 2012 01:06:10 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164874 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/DependencyGraph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Frontend/DependencyGraph.cpp') diff --git a/lib/Frontend/DependencyGraph.cpp b/lib/Frontend/DependencyGraph.cpp index 7fb4ad7250..28d9c5d320 100644 --- a/lib/Frontend/DependencyGraph.cpp +++ b/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; -- cgit v1.2.3-70-g09d2