diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-08-20 16:03:45 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-08-20 18:08:59 -0700 |
| commit | c90ca0c8e4956e051e2f29cff0c38f9f03b32f87 (patch) | |
| tree | b0de8568b6fd8428765c41b50e77e1753fe71509 /lldb/source/Utility/Reproducer.cpp | |
| parent | 66c882e529a388465463e80de93b4f353a9391a8 (diff) | |
| download | llvm-c90ca0c8e4956e051e2f29cff0c38f9f03b32f87.tar.gz llvm-c90ca0c8e4956e051e2f29cff0c38f9f03b32f87.tar.bz2 llvm-c90ca0c8e4956e051e2f29cff0c38f9f03b32f87.zip | |
[lldb] Implement WorkingDirectoryProvider in terms of DirectoryProvider (NFC)
Add an abstract base class that can be used to create other directory
providers.
Diffstat (limited to 'lldb/source/Utility/Reproducer.cpp')
| -rw-r--r-- | lldb/source/Utility/Reproducer.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp index 4441f3d475ea..935e41a08a4e 100644 --- a/lldb/source/Utility/Reproducer.cpp +++ b/lldb/source/Utility/Reproducer.cpp @@ -290,15 +290,6 @@ void VersionProvider::Keep() { os << m_version << "\n"; } -void WorkingDirectoryProvider::Keep() { - FileSpec file = GetRoot().CopyByAppendingPathComponent(Info::file); - std::error_code ec; - llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text); - if (ec) - return; - os << m_cwd << "\n"; -} - void FileProvider::RecordInterestingDirectory(const llvm::Twine &dir) { if (m_collector) m_collector->addFile(dir); |
