mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 20:10:50 +08:00
[lldb/Reproducers] Also record directories FileSystem::Collect.
Now that the FileCollector knows how to deal with directories we no longer have to ignore them in the FileSystem class.
This commit is contained in:
@@ -487,7 +487,11 @@ void FileSystem::Collect(const FileSpec &file_spec) {
|
||||
}
|
||||
|
||||
void FileSystem::Collect(const llvm::Twine &file) {
|
||||
if (m_collector && !llvm::sys::fs::is_directory(file)) {
|
||||
if (!m_collector)
|
||||
return;
|
||||
|
||||
if (llvm::sys::fs::is_directory(file))
|
||||
m_collector->addDirectory(file);
|
||||
else
|
||||
m_collector->addFile(file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user