[FileCollector] Move interface into FileCollectorBase (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 19 Oct 2020 21:29:59 +0000 (14:29 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 20 Oct 2020 04:37:20 +0000 (21:37 -0700)
commitf44fb130253aa5486380604101ce50a62a8d668b
treebffa5b0996f0c1f8ccf56fc42f8486f3959c05bc
parenta10a64e7e334dc878d281aba9a46f751fe606567
[FileCollector] Move interface into FileCollectorBase (NFC)

For the reproducers in LLDB we want to switch to an "immediate mode"
FileCollector that writes every file encountered straight to disk so we
can generate the actual mapping out-of-process. This patch moves the
interface into a separate base class.

Differential revision: https://reviews.llvm.org/D89742
llvm/include/llvm/Support/FileCollector.h
llvm/lib/Support/FileCollector.cpp