[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
This commit is contained in:
Argyrios Kyrtzidis
2014-03-14 02:26:31 +00:00
parent ce9b49e5ec
commit 68ccbe01b0
4 changed files with 31 additions and 10 deletions

View File

@@ -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;
}