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