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/Commands/CommandObjectMemory.cpp | |
parent | 8d05185a26ecbd1079b43651c427508a6156f1ea (diff) | |
download | llvm-b3a36df39e60f1f5833930190b29a0a41336c24d.zip llvm-b3a36df39e60f1f5833930190b29a0a41336c24d.tar.gz llvm-b3a36df39e60f1f5833930190b29a0a41336c24d.tar.bz2 |
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/Commands/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 7a0da83..b9f9eda 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -540,7 +540,7 @@ protected: { if (ClangPersistentVariables *persistent_vars = llvm::dyn_cast_or_null<ClangPersistentVariables>(target->GetPersistentExpressionStateForLanguage(lldb::eLanguageTypeC))) { - clang::TypeDecl *tdecl = persistent_vars->GetPersistentType(ConstString(lookup_type_name)); + clang::TypeDecl *tdecl = llvm::dyn_cast_or_null<clang::TypeDecl>(persistent_vars->GetPersistentDecl(ConstString(lookup_type_name))); if (tdecl) { |