]> granicus.if.org Git - clang/commit
Add dependencies from imported modules with -MD
authorBen Langmuir <blangmuir@apple.com>
Fri, 7 Mar 2014 06:40:32 +0000 (06:40 +0000)
committerBen Langmuir <blangmuir@apple.com>
Fri, 7 Mar 2014 06:40:32 +0000 (06:40 +0000)
commit9f36327e3df8d2a4e89109b86eb610d84a13b4b9
tree850d8f7a8f7ffbc1ab18cf3be7357efb5a740d48
parent760c6c756172cb1671d1fc5203e99781914591e3
Add dependencies from imported modules with -MD

Add module dependencies to the dependency files created by -MD/-MMD/etc.
by attaching an ASTReaderListener that will call into the dependency
file generator when a module input file is seen in the serialized AST.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203208 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/Utils.h
include/clang/Serialization/ASTReader.h
lib/Frontend/CompilerInstance.cpp
lib/Frontend/DependencyFile.cpp
lib/Lex/ModuleMap.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Modules/dependency-gen.m [new file with mode: 0644]