[CrashReproducer] Add support for merging -ivfsoverlay
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 22 Dec 2016 07:06:03 +0000 (07:06 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 22 Dec 2016 07:06:03 +0000 (07:06 +0000)
commit82ec4fde42176d315fd859514c3b3d0aa364acf0
tree675f3f87f7577d48bf8fdaa6d64eda17174ecb34
parente3f5064b723536b34a9477c884b920938601b3fe
[CrashReproducer] Add support for merging -ivfsoverlay

Merge all VFS mapped files inside -ivfsoverlay inputs into the vfs
overlay provided by the crash reproducer. This is the last missing piece
to allow crash reproducers to fully work with user frameworks; when
combined with headermaps, it allows clang to find additional frameworks.

rdar://problem/27913709

llvm-svn: 290326
clang/include/clang/Basic/VirtualFileSystem.h
clang/include/clang/Frontend/Utils.h
clang/lib/Basic/VirtualFileSystem.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/ModuleDependencyCollector.cpp
clang/test/Modules/crash-vfs-ivfsoverlay.m [new file with mode: 0644]