[FileCollector] Add a method to add a whole directory and it contents.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 27 Mar 2020 22:41:08 +0000 (15:41 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 28 Mar 2020 00:38:24 +0000 (17:38 -0700)
commit8913769e353a171ba01fa8ce9d598e979b620be9
tree44371568b058a9a1baeef5fd51f18bb3af2c3ea9
parentaabc24acf0d5f8677bd22fe9c108581e07c3e180
[FileCollector] Add a method to add a whole directory and it contents.

Extend the FileCollector's API with addDirectory which adds a directory
and its contents to the VFS mapping.

Differential revision: https://reviews.llvm.org/D76671
llvm/include/llvm/Support/FileCollector.h
llvm/lib/Support/FileCollector.cpp
llvm/unittests/Support/FileCollectorTest.cpp