[CrashReproducer] Collect PCH included via -include-pch
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 12 Dec 2016 19:28:25 +0000 (19:28 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 12 Dec 2016 19:28:25 +0000 (19:28 +0000)
commit7aff2bb3d23bb1f4f970d382dc1696392ce99827
treeb71c44e25aa600ce477d84b3b2b159df7edd7070
parentb4d56f1a4f972ed9ed0b5b7f61d749e025320027
[CrashReproducer] Collect PCH included via -include-pch

Collect the necessary input PCH files.

Do not try to validate the AST before copying it out because if the
crash is in this path, we won't be able to collect it. Instead only
check if it's a file containg an AST.

rdar://problem/27913709

llvm-svn: 289460
clang/lib/Driver/Job.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/test/Modules/crash-vfs-include-pch.m [new file with mode: 0644]