[llvm] 9827792 - Make demangler independent of LLVM again

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 02:44:32 PDT 2022


Author: Benjamin Kramer
Date: 2022-08-15T11:44:28+02:00
New Revision: 982779230fe0950e5ee0192fdad070d796094d30

URL: https://github.com/llvm/llvm-project/commit/982779230fe0950e5ee0192fdad070d796094d30
DIFF: https://github.com/llvm/llvm-project/commit/982779230fe0950e5ee0192fdad070d796094d30.diff

LOG: Make demangler independent of LLVM again

The demangler is not supposed to include bits of LLVM, so it can't use STLExtras.

This undoes part of 6d9cd9199a6fdeab0412117bcefc28f625510b61

Added: 
    

Modified: 
    llvm/lib/Demangle/RustDemangle.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Demangle/RustDemangle.cpp b/llvm/lib/Demangle/RustDemangle.cpp
index e9724d0f1f247..32b10db2a968d 100644
--- a/llvm/lib/Demangle/RustDemangle.cpp
+++ b/llvm/lib/Demangle/RustDemangle.cpp
@@ -12,7 +12,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Demangle/Demangle.h"
-#include "llvm/ADT/STLExtras.h"
 #include "llvm/Demangle/StringView.h"
 #include "llvm/Demangle/Utility.h"
 
@@ -866,7 +865,7 @@ Identifier Demangler::parseIdentifier() {
   StringView S = Input.substr(Position, Bytes);
   Position += Bytes;
 
-  if (!llvm::all_of(S, isValid)) {
+  if (!std::all_of(S.begin(), S.end(), isValid)) {
     Error = true;
     return {};
   }


        


More information about the llvm-commits mailing list