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/Rewrite/Frontend/InclusionRewriter.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/Rewrite/Frontend/InclusionRewriter.cpp')
-rw-r--r-- | clang/lib/Rewrite/Frontend/InclusionRewriter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Rewrite/Frontend/InclusionRewriter.cpp b/clang/lib/Rewrite/Frontend/InclusionRewriter.cpp index 9c3c43bb514..cecc8672c5c 100644 --- a/clang/lib/Rewrite/Frontend/InclusionRewriter.cpp +++ b/clang/lib/Rewrite/Frontend/InclusionRewriter.cpp @@ -60,7 +60,8 @@ private: CharSourceRange FilenameRange, const FileEntry *File, StringRef SearchPath, - StringRef RelativePath); + StringRef RelativePath, + const Module *Imported); void WriteLineInfo(const char *Filename, int Line, SrcMgr::CharacteristicKind FileType, StringRef EOL, StringRef Extra = StringRef()); @@ -155,7 +156,8 @@ void InclusionRewriter::InclusionDirective(SourceLocation HashLoc, CharSourceRange /*FilenameRange*/, const FileEntry * /*File*/, StringRef /*SearchPath*/, - StringRef /*RelativePath*/) { + StringRef /*RelativePath*/, + const Module */*Imported*/) { assert(LastInsertedFileChange == FileChanges.end() && "Another inclusion " "directive was found before the previous one was processed"); std::pair<FileChangeMap::iterator, bool> p = FileChanges.insert( |