diff options
| author | Sean Callanan <scallanan@apple.com> | 2016-03-19 00:51:43 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2016-03-19 00:51:43 +0000 |
| commit | b3a36df39e60f1f5833930190b29a0a41336c24d (patch) | |
| tree | 46ae5b97cbb17dd85d340aa80921369e0f366c8e /lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h | |
| parent | 8d05185a26ecbd1079b43651c427508a6156f1ea (diff) | |
| download | bcm5719-llvm-b3a36df39e60f1f5833930190b29a0a41336c24d.tar.gz bcm5719-llvm-b3a36df39e60f1f5833930190b29a0a41336c24d.zip | |
Handle any persistent Decl in the Clang expression parser, not just types.
Persistent decls have traditionally only been types. However, we want to
be able to persist more things, like functions and global variables. This
changes some of the nomenclature and the lookup rules to make this possible.
<rdar://problem/22864976>
llvm-svn: 263864
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h index 0e03d013d04..e94db680e14 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h @@ -74,11 +74,11 @@ public: LookupSymbol (const ConstString &name) override { return LLDB_INVALID_ADDRESS; } void - RegisterPersistentType (const ConstString &name, - clang::TypeDecl *tag_decl); + RegisterPersistentDecl (const ConstString &name, + clang::NamedDecl *decl); - clang::TypeDecl * - GetPersistentType (const ConstString &name); + clang::NamedDecl * + GetPersistentDecl (const ConstString &name); void AddHandLoadedClangModule(ClangModulesDeclVendor::ModuleID module) @@ -94,8 +94,8 @@ public: private: uint32_t m_next_persistent_variable_id; ///< The counter used by GetNextResultName(). - typedef llvm::DenseMap<const char *, clang::TypeDecl *> PersistentTypeMap; - PersistentTypeMap m_persistent_types; ///< The persistent types declared by the user. + typedef llvm::DenseMap<const char *, clang::NamedDecl *> PersistentDeclMap; + PersistentDeclMap m_persistent_decls; ///< Persistent entities declared by the user. ClangModulesDeclVendor::ModuleVector m_hand_loaded_clang_modules; ///< These are Clang modules we hand-loaded; these are the highest- ///< priority source for macros. |

