summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2016-03-19 00:51:43 +0000
committerSean Callanan <scallanan@apple.com>2016-03-19 00:51:43 +0000
commitb3a36df39e60f1f5833930190b29a0a41336c24d (patch)
tree46ae5b97cbb17dd85d340aa80921369e0f366c8e /lldb/source/Commands/CommandObjectMemory.cpp
parent8d05185a26ecbd1079b43651c427508a6156f1ea (diff)
downloadbcm5719-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/Commands/CommandObjectMemory.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp
index 7a0da8386d7..b9f9edaab6c 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)
{
OpenPOWER on IntegriCloud