aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-05-24 09:37:29 -0700
committerGitHub <noreply@github.com>2025-05-24 09:37:29 -0700
commit4788d5fabc54ec5f6e95d3b00a9811f90c5f94ae (patch)
treefd2aca51feebd9d3b324716357295cea287ba909 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent24c782e0030c145bc0deebc56b72a1729b9cdd64 (diff)
downloadllvm-4788d5fabc54ec5f6e95d3b00a9811f90c5f94ae.zip
llvm-4788d5fabc54ec5f6e95d3b00a9811f90c5f94ae.tar.gz
llvm-4788d5fabc54ec5f6e95d3b00a9811f90c5f94ae.tar.bz2
[lldb] Use llvm::stable_sort (NFC) (#141352)
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 709d09f..420c84b 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -2758,11 +2758,10 @@ Status ProcessGDBRemote::WriteObjectFile(
Status error;
// Sort the entries by address because some writes, like those to flash
// memory, must happen in order of increasing address.
- std::stable_sort(
- std::begin(entries), std::end(entries),
- [](const ObjectFile::LoadableData a, const ObjectFile::LoadableData b) {
- return a.Dest < b.Dest;
- });
+ llvm::stable_sort(entries, [](const ObjectFile::LoadableData a,
+ const ObjectFile::LoadableData b) {
+ return a.Dest < b.Dest;
+ });
m_allow_flash_writes = true;
error = Process::WriteObjectFile(entries);
if (error.Success())