From eef5405f74ae208e3e2eb7daacecac923d7338f2 Mon Sep 17 00:00:00 2001 From: Zequan Wu Date: Tue, 22 Nov 2022 10:54:46 -0800 Subject: Revert "[LTO][COFF] Use bitcode file names in lto native object file names." This reverts commit 531ed6d5aa65f41c6dfe2e74905d5c6c88fc95a7. --- lldb/source/Core/DataFileCache.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lldb/source/Core/DataFileCache.cpp') diff --git a/lldb/source/Core/DataFileCache.cpp b/lldb/source/Core/DataFileCache.cpp index b29327db5ca3..36efccd296a3 100644 --- a/lldb/source/Core/DataFileCache.cpp +++ b/lldb/source/Core/DataFileCache.cpp @@ -54,8 +54,7 @@ DataFileCache::DataFileCache(llvm::StringRef path, llvm::CachePruningPolicy poli // m_take_ownership member variable to indicate if we need to take // ownership. - auto add_buffer = [this](unsigned task, const llvm::Twine &moduleName, - std::unique_ptr m) { + auto add_buffer = [this](unsigned task, std::unique_ptr m) { if (m_take_ownership) m_mem_buff_up = std::move(m); }; @@ -81,7 +80,7 @@ DataFileCache::GetCachedData(llvm::StringRef key) { // turn take ownership of the member buffer that is passed to the callback and // put it into a member variable. llvm::Expected add_stream_or_err = - m_cache_callback(task, key, ""); + m_cache_callback(task, key); m_take_ownership = false; // At this point we either already called the "add_buffer" lambda with // the data or we haven't. We can tell if we got the cached data by checking @@ -113,7 +112,7 @@ bool DataFileCache::SetCachedData(llvm::StringRef key, // add_buffer lambda function from the constructor which will ignore the // data. llvm::Expected add_stream_or_err = - m_cache_callback(task, key, ""); + m_cache_callback(task, key); // If we reach this code then we either already called the callback with // the data or we haven't. We can tell if we had the cached data by checking // the CacheAddStream function pointer value below. @@ -128,7 +127,7 @@ bool DataFileCache::SetCachedData(llvm::StringRef key, // want to write the data. if (add_stream) { llvm::Expected> file_or_err = - add_stream(task, ""); + add_stream(task); if (file_or_err) { llvm::CachedFileStream *cfs = file_or_err->get(); cfs->OS->write((const char *)data.data(), data.size()); -- cgit v1.2.3