blob: 1b1cf0a5899e58f0a563e86107176be5837742e4 [file] [log] [blame]
Shih-wei Liao462aefd2010-06-04 15:32:04 -07001#ifndef _SLANG_COMPILER_RS_EXPORT_VAR_HPP
2# define _SLANG_COMPILER_RS_EXPORT_VAR_HPP
3
4#include "llvm/ADT/StringRef.h" /* for class llvm::StringRef */
5
6#include "clang/AST/Decl.h" /* for clang::VarDecl */
7
8#include <string>
9
10namespace slang {
11
12using namespace clang;
13
14class RSContext;
15class RSExportType;
16
17class RSExportVar {
18 friend class RSContext;
19private:
20 RSContext* mContext;
21 std::string mName;
22 const RSExportType* mET;
23
24 RSExportVar(RSContext* Context, const VarDecl* VD, const RSExportType* ET);
25
26public:
27 inline const std::string& getName() const { return mName; }
28 inline const RSExportType* getType() const { return mET; }
29 inline RSContext* getRSContext() const { return mContext; }
30
31}; /* RSExportVar */
32
33
34} /* namespace slang */
35
36#endif /* _SLANG_COMPILER_RS_EXPORT_VAR_HPP */