Author: Nico Weber
Date: 2023-12-22T12:11:07-05:00
New Revision: 04c473bea3e0f135432698fcaafab52e1fe1b5ec

URL: 
https://github.com/llvm/llvm-project/commit/04c473bea3e0f135432698fcaafab52e1fe1b5ec
DIFF: 
https://github.com/llvm/llvm-project/commit/04c473bea3e0f135432698fcaafab52e1fe1b5ec.diff

LOG: [lldb] Fix two deprecation warnings

No behavior change.

Added: 
    

Modified: 
    lldb/source/Host/linux/HostInfoLinux.cpp
    lldb/source/Target/JITLoaderList.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/linux/HostInfoLinux.cpp 
b/lldb/source/Host/linux/HostInfoLinux.cpp
index c66f787db0cf95..723f0c2fb3fdc6 100644
--- a/lldb/source/Host/linux/HostInfoLinux.cpp
+++ b/lldb/source/Host/linux/HostInfoLinux.cpp
@@ -123,7 +123,7 @@ llvm::StringRef HostInfoLinux::GetDistributionId() {
         if (strstr(distribution_id, distributor_id_key)) {
           // strip newlines
           std::string id_string(distribution_id + strlen(distributor_id_key));
-          llvm::erase_value(id_string, '\n');
+          llvm::erase(id_string, '\n');
 
           // lower case it and convert whitespace to underscores
           std::transform(

diff  --git a/lldb/source/Target/JITLoaderList.cpp 
b/lldb/source/Target/JITLoaderList.cpp
index 9158d0a5e546c8..9fa070edd4b8db 100644
--- a/lldb/source/Target/JITLoaderList.cpp
+++ b/lldb/source/Target/JITLoaderList.cpp
@@ -24,7 +24,7 @@ void JITLoaderList::Append(const JITLoaderSP &jit_loader_sp) {
 
 void JITLoaderList::Remove(const JITLoaderSP &jit_loader_sp) {
   std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex);
-  llvm::erase_value(m_jit_loaders_vec, jit_loader_sp);
+  llvm::erase(m_jit_loaders_vec, jit_loader_sp);
 }
 
 size_t JITLoaderList::GetSize() const { return m_jit_loaders_vec.size(); }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to