1 //===-- ExpressionTypeSystemHelper.h ---------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef ExpressionTypeSystemHelper_h
12 #define ExpressionTypeSystemHelper_h
14 #include "llvm/Support/Casting.h"
16 namespace lldb_private {
18 //----------------------------------------------------------------------
19 /// @class ExpressionTypeSystemHelper ExpressionTypeSystemHelper.h
20 /// "lldb/Expression/ExpressionTypeSystemHelper.h"
21 /// @brief A helper object that the Expression can pass to its ExpressionParser
22 /// to provide generic information that
23 /// any type of expression will need to supply. It's only job is to support
24 /// dyn_cast so that the expression parser
25 /// can cast it back to the requisite specific type.
27 //----------------------------------------------------------------------
29 class ExpressionTypeSystemHelper {
38 LLVMCastKind getKind() const { return m_kind; }
40 ExpressionTypeSystemHelper(LLVMCastKind kind) : m_kind(kind) {}
42 ~ExpressionTypeSystemHelper() {}
48 } // namespace lldb_private
50 #endif /* ExpressionTypeSystemHelper_h */