[libcxx-commits] [libcxxabi] 23a674d - [libcxxabi] Update ItaniumDemangle.h from LLVM (#140273)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 16 09:26:13 PDT 2025


Author: Aiden Grossman
Date: 2025-05-16T09:26:09-07:00
New Revision: 23a674d2ecc428a96d28c9772cc5178eaf763863

URL: https://github.com/llvm/llvm-project/commit/23a674d2ecc428a96d28c9772cc5178eaf763863
DIFF: https://github.com/llvm/llvm-project/commit/23a674d2ecc428a96d28c9772cc5178eaf763863.diff

LOG: [libcxxabi] Update ItaniumDemangle.h from LLVM (#140273)

76ba29bfd8e8aaf5b0267598d18434a0d13945a2 landed changes in
ItaniumDemangle.h on the LLVM side that were not propagated over to the
libcxxabi side. This patch fixes that.

Added: 
    

Modified: 
    libcxxabi/src/demangle/ItaniumDemangle.h

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h
index 6acefeea8484b..4e7f92dd1991a 100644
--- a/libcxxabi/src/demangle/ItaniumDemangle.h
+++ b/libcxxabi/src/demangle/ItaniumDemangle.h
@@ -21,6 +21,7 @@
 #include "Utility.h"
 #include <algorithm>
 #include <cctype>
+#include <cstdint>
 #include <cstdio>
 #include <cstdlib>
 #include <cstring>
@@ -164,18 +165,18 @@ class NodeArray;
 // traversed by the printLeft/Right functions to produce a demangled string.
 class Node {
 public:
-  enum Kind : unsigned char {
+  enum Kind : uint8_t {
 #define NODE(NodeKind) K##NodeKind,
 #include "ItaniumNodes.def"
   };
 
   /// Three-way bool to track a cached value. Unknown is possible if this node
   /// has an unexpanded parameter pack below it that may affect this cache.
-  enum class Cache : unsigned char { Yes, No, Unknown, };
+  enum class Cache : uint8_t { Yes, No, Unknown, };
 
   /// Operator precedence for expression nodes. Used to determine required
   /// parens in expression emission.
-  enum class Prec {
+  enum class Prec : uint8_t {
     Primary,
     Postfix,
     Unary,


        


More information about the libcxx-commits mailing list