aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-03-14 02:26:31 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-03-14 02:26:31 +0000
commit68ccbe01b0fdb6b2ce3893d851ce225cd869cf0b (patch)
tree3e34e29bcda5fa5b6735c84bcff7a6abe9273625 /clang/lib/Frontend/DependencyFile.cpp
parentce9b49e5ecc357019fdc41bc666d2ab7caf75f21 (diff)
downloadllvm-68ccbe01b0fdb6b2ce3893d851ce225cd869cf0b.zip
llvm-68ccbe01b0fdb6b2ce3893d851ce225cd869cf0b.tar.gz
llvm-68ccbe01b0fdb6b2ce3893d851ce225cd869cf0b.tar.bz2
[Modules] Make sure that the synthesized file "__inferred_module.map" doesn't show up as dependency of a module file.
Follow-up for rdar://15459210 llvm-svn: 203882
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index e27381b..8457770 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -79,7 +79,8 @@ public:
bool needsSystemInputFileVisitation() override {
return Parent.includeSystemHeaders();
}
- bool visitInputFile(StringRef Filename, bool isSystem) override;
+ bool visitInputFile(StringRef Filename, bool isSystem,
+ bool isOverridden) override;
};
}
@@ -258,8 +259,11 @@ void DFGImpl::OutputDependencyFile() {
}
bool DFGASTReaderListener::visitInputFile(llvm::StringRef Filename,
- bool IsSystem) {
+ bool IsSystem, bool IsOverridden) {
assert(!IsSystem || needsSystemInputFileVisitation());
+ if (IsOverridden)
+ return true;
+
Parent.AddFilename(Filename);
return true;
}