diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h index dcece38992138..aacc14c61aa19 100644 --- a/llvm/include/llvm/Demangle/ItaniumDemangle.h +++ b/llvm/include/llvm/Demangle/ItaniumDemangle.h @@ -2057,6 +2057,9 @@ class EnumLiteral : public Node { else S << Integer; } + + // Retrieves the string view of the integer value this node represents. + const StringView &getIntegerValue() const { return Integer; } }; class IntegerLiteral : public Node { @@ -2085,6 +2088,13 @@ class IntegerLiteral : public Node { if (Type.size() <= 3) S += Type; } + + // Retrieves the string view of the integer value represented by this node. + const StringView &getValue() const { return Value; } + + // Retrieves the string view of the type string of the integer value this node + // represents. + const StringView &getType() const { return Type; } }; template struct FloatData;