1 //===-- ExpressionTypeSystemHelper.h ---------------------------------*- C++
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef ExpressionTypeSystemHelper_h
11 #define ExpressionTypeSystemHelper_h
13 #include "llvm/Support/Casting.h"
15 namespace lldb_private {
17 /// \class ExpressionTypeSystemHelper ExpressionTypeSystemHelper.h
18 /// "lldb/Expression/ExpressionTypeSystemHelper.h"
19 /// A helper object that the Expression can pass to its ExpressionParser
20 /// to provide generic information that
21 /// any type of expression will need to supply. It's only job is to support
22 /// dyn_cast so that the expression parser can cast it back to the requisite
26 class ExpressionTypeSystemHelper {
35 LLVMCastKind getKind() const { return m_kind; }
37 ExpressionTypeSystemHelper(LLVMCastKind kind) : m_kind(kind) {}
39 ~ExpressionTypeSystemHelper() {}
45 } // namespace lldb_private
47 #endif /* ExpressionTypeSystemHelper_h */