aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-09-30 19:57:57 +0000
committerSean Callanan <scallanan@apple.com>2015-09-30 19:57:57 +0000
commit8f1f9a1be30ff0e260f451f18712dff7fa9a7273 (patch)
tree0f8b5547cb3eeee31a03e5b687b083f7af8013fa /lldb/source/Commands/CommandObjectMemory.cpp
parentf608111d1b6493ae9f8e8f0c24da57ca1aebb72f (diff)
downloadllvm-8f1f9a1be30ff0e260f451f18712dff7fa9a7273.zip
llvm-8f1f9a1be30ff0e260f451f18712dff7fa9a7273.tar.gz
llvm-8f1f9a1be30ff0e260f451f18712dff7fa9a7273.tar.bz2
Now persistent expression data no longer lives with the Target, but rather with
the corresponding TypeSystem. This makes sense because what kind of data there is -- and how it can be looked up -- depends on the language. Functionality that is common to all type systems is factored out into PersistentExpressionState. llvm-svn: 248934
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 c38cb2b..fb800f9 100644
--- a/lldb/source/Commands/CommandObjectMemory.cpp
+++ b/lldb/source/Commands/CommandObjectMemory.cpp
@@ -530,7 +530,7 @@ protected:
if (type_list.GetSize() == 0 && lookup_type_name.GetCString() && *lookup_type_name.GetCString() == '$')
{
- clang::TypeDecl *tdecl = target->GetPersistentVariables().GetPersistentType(ConstString(lookup_type_name));
+ clang::TypeDecl *tdecl = llvm::cast<ClangPersistentVariables>(target->GetScratchTypeSystemForLanguage(lldb::eLanguageTypeC)->GetPersistentExpressionState())->GetPersistentType(ConstString(lookup_type_name));
if (tdecl)
{
clang_ast_type.SetCompilerType(ClangASTContext::GetASTContext(&tdecl->getASTContext()),(const lldb::opaque_compiler_type_t)tdecl->getTypeForDecl());