================ @@ -178,6 +179,54 @@ class BitFieldExtractionNode : public ASTNode { int64_t m_last_index; }; +class IntegerLiteralNode : public ASTNode { +public: + IntegerLiteralNode(uint32_t location, llvm::APInt value, uint32_t radix, + bool is_unsigned, bool is_long, bool is_longlong) + : ASTNode(location, NodeKind::eScalarLiteralNode), m_value(value), + m_radix(radix), m_is_unsigned(is_unsigned), m_is_long(is_long), + m_is_longlong(is_longlong) {} + + llvm::Expected<lldb::ValueObjectSP> Accept(Visitor *v) const override; + + llvm::APInt GetValue() const { return m_value; } + uint32_t GetRadix() const { return m_radix; } + bool IsUnsigned() const { return m_is_unsigned; } + bool IsLong() const { return m_is_long; } + bool IsLongLong() const { return m_is_longlong; } ---------------- labath wrote:
The two are mutually exclusive, so maybe make an enum out of that? https://github.com/llvm/llvm-project/pull/152308 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits