diff options
author | Pavel Labath <labath@google.com> | 2015-06-08 22:27:10 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-06-08 22:27:10 +0000 |
commit | c33ae024a64962cb38b64073a035a5fc36aa2214 (patch) | |
tree | 4fff2e0f0c816610b412c932fbbb0a6b54ac861c /lldb/source/Commands/CommandObjectMemory.cpp | |
parent | e6eea5d055d06db7aefdfa879ae052a2d34ab464 (diff) | |
download | llvm-c33ae024a64962cb38b64073a035a5fc36aa2214.zip llvm-c33ae024a64962cb38b64073a035a5fc36aa2214.tar.gz llvm-c33ae024a64962cb38b64073a035a5fc36aa2214.tar.bz2 |
Introduce a TypeSystem interface to support adding non-clang languages.
Reviewers: clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D8712
Original Author: Ryan Brown <ribrdb@google.com>
llvm-svn: 239360
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index d589800..9410f73 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -33,6 +33,7 @@ #include "lldb/Interpreter/OptionGroupOutputFile.h" #include "lldb/Interpreter/OptionGroupValueObjectDisplay.h" #include "lldb/Interpreter/OptionValueString.h" +#include "lldb/Symbol/ClangASTContext.h" #include "lldb/Symbol/TypeList.h" #include "lldb/Target/MemoryHistory.h" #include "lldb/Target/Process.h" @@ -532,7 +533,7 @@ protected: clang::TypeDecl *tdecl = target->GetPersistentVariables().GetPersistentType(ConstString(lookup_type_name)); if (tdecl) { - clang_ast_type.SetClangType(&tdecl->getASTContext(),(const lldb::clang_type_t)tdecl->getTypeForDecl()); + clang_ast_type.SetClangType(ClangASTContext::GetASTContext(&tdecl->getASTContext()),(const lldb::clang_type_t)tdecl->getTypeForDecl()); } } |