aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Reproducer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-07-21 08:59:44 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-07-21 09:02:38 -0700
commit9f8d481d6816d620fc0a1f1c510f662c01fdacec (patch)
tree2d95885326f20af524f53354e4998553577453db /lldb/source/Utility/Reproducer.cpp
parentbb8850d34d601d4edd75fd30c07821c05a726c42 (diff)
downloadllvm-9f8d481d6816d620fc0a1f1c510f662c01fdacec.tar.gz
llvm-9f8d481d6816d620fc0a1f1c510f662c01fdacec.tar.bz2
llvm-9f8d481d6816d620fc0a1f1c510f662c01fdacec.zip
[lldb/Reproducers] Don't recursively record everything in the CWD
RecordInterestingDirectory was added to collect dSYM bundles and their content. For the current working directory we only want the directory to be part of the VFS, not necessarily its contents. This patch renames the current method to RecordInterestingDirectoryRecursively and adds a new one that's not recursive.
Diffstat (limited to 'lldb/source/Utility/Reproducer.cpp')
-rw-r--r--lldb/source/Utility/Reproducer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index 46e909ecdba6..3ad1064cd4c4 100644
--- a/lldb/source/Utility/Reproducer.cpp
+++ b/lldb/source/Utility/Reproducer.cpp
@@ -301,6 +301,11 @@ void WorkingDirectoryProvider::Keep() {
void FileProvider::RecordInterestingDirectory(const llvm::Twine &dir) {
if (m_collector)
+ m_collector->addFile(dir);
+}
+
+void FileProvider::RecordInterestingDirectoryRecursive(const llvm::Twine &dir) {
+ if (m_collector)
m_collector->addDirectory(dir);
}