diff options
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/include/lldb/Utility/FileCollector.h | 12 | ||||
-rw-r--r-- | lldb/include/lldb/Utility/Reproducer.h | 4 | ||||
-rw-r--r-- | lldb/source/Host/common/FileSystem.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ModuleDependencyCollector.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lldb/include/lldb/Utility/FileCollector.h b/lldb/include/lldb/Utility/FileCollector.h index 96d03a8dcfc..22c1c6d7526 100644 --- a/lldb/include/lldb/Utility/FileCollector.h +++ b/lldb/include/lldb/Utility/FileCollector.h @@ -22,17 +22,17 @@ public: FileCollector(const FileSpec &root, const FileSpec &overlay) : llvm::FileCollector(root.GetPath(), overlay.GetPath()) {} - using llvm::FileCollector::AddFile; + using llvm::FileCollector::addFile; - void AddFile(const FileSpec &file) { - std::string path = file.GetPath(); - llvm::FileCollector::AddFile(path); + void addFile(const FileSpec &file) { + std::string path = file.GetPath(); + llvm::FileCollector::addFile(path); } /// Write the yaml mapping (for the VFS) to the given file. - std::error_code WriteMapping(const FileSpec &mapping_file) { + std::error_code writeMapping(const FileSpec &mapping_file) { std::string path = mapping_file.GetPath(); - return llvm::FileCollector::WriteMapping(path); + return llvm::FileCollector::writeMapping(path); } }; diff --git a/lldb/include/lldb/Utility/Reproducer.h b/lldb/include/lldb/Utility/Reproducer.h index 670041d06bb..1c4486bef0f 100644 --- a/lldb/include/lldb/Utility/Reproducer.h +++ b/lldb/include/lldb/Utility/Reproducer.h @@ -99,9 +99,9 @@ public: void Keep() override { auto mapping = GetRoot().CopyByAppendingPathComponent(Info::file); // Temporary files that are removed during execution can cause copy errors. - if (auto ec = m_collector.CopyFiles(/*stop_on_error=*/false)) + if (auto ec = m_collector.copyFiles(/*stop_on_error=*/false)) return; - m_collector.WriteMapping(mapping); + m_collector.writeMapping(mapping); } static char ID; diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp index d5ac05bd447..8fc4ff47a50 100644 --- a/lldb/source/Host/common/FileSystem.cpp +++ b/lldb/source/Host/common/FileSystem.cpp @@ -280,7 +280,7 @@ std::shared_ptr<DataBufferLLVM> FileSystem::CreateDataBuffer(const llvm::Twine &path, uint64_t size, uint64_t offset) { if (m_collector) - m_collector->AddFile(path); + m_collector->addFile(path); const bool is_volatile = !IsLocal(path); const ErrorOr<std::string> external_path = GetExternalPath(path); @@ -418,7 +418,7 @@ static mode_t GetOpenMode(uint32_t permissions) { Status FileSystem::Open(File &File, const FileSpec &file_spec, uint32_t options, uint32_t permissions, bool should_close_fd) { if (m_collector) - m_collector->AddFile(file_spec); + m_collector->addFile(file_spec); if (File.IsValid()) File.Close(); diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ModuleDependencyCollector.h b/lldb/source/Plugins/ExpressionParser/Clang/ModuleDependencyCollector.h index 0e959f86fd2..ad4c4690afb 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ModuleDependencyCollector.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ModuleDependencyCollector.h @@ -23,7 +23,7 @@ public: void addFile(llvm::StringRef Filename, llvm::StringRef FileDst = {}) override { - m_file_collector.AddFile(Filename); + m_file_collector.addFile(Filename); } bool insertSeen(llvm::StringRef Filename) override { return false; } |