[lldb][debugserver] Revert "Use llvm::all_of (NFC)" for debugserver
authorMichael Buch <michaelbuch12@gmail.com>
Mon, 15 Aug 2022 16:22:16 +0000 (17:22 +0100)
committerMichael Buch <michaelbuch12@gmail.com>
Mon, 15 Aug 2022 16:35:39 +0000 (17:35 +0100)
Commit [6d9cd9199a6fdeab0412117bcefc28f625510b61](https://reviews.llvm.org/rG6d9cd9199a6fdeab0412117bcefc28f625510b61) added a dependency on llvm to debugserver.
This breaks the build. Since we don't want to add a dependency on llvm, this
patch reverts the offending commit.

Differential Revision: https://reviews.llvm.org/D131901

lldb/tools/debugserver/source/RNBRemote.cpp

index ee5d93c..ebb2125 100644 (file)
@@ -4861,8 +4861,8 @@ rnb_err_t RNBRemote::HandlePacket_qHostInfo(const char *p) {
 
   std::string maccatalyst_version = DNBGetMacCatalystVersionString();
   if (!maccatalyst_version.empty() &&
-      llvm::all_of(maccatalyst_version,
-                   [](char c) { return (c >= '0' && c <= '9') || c == '.'; }))
+      std::all_of(maccatalyst_version.begin(), maccatalyst_version.end(),
+                  [](char c) { return (c >= '0' && c <= '9') || c == '.'; }))
     strm << "maccatalyst_version:" << maccatalyst_version << ";";
 
 #if defined(__LITTLE_ENDIAN__)