summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/NSArray.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-08-11 21:38:15 +0000
committerGreg Clayton <gclayton@apple.com>2015-08-11 21:38:15 +0000
commitd8d4a57b37312b62dfa90226293db521e7a4a6fb (patch)
treeace5d255c1f17af9a9e482ba3e61ed20a05c30c6 /lldb/source/DataFormatters/NSArray.cpp
parent78046b49a9397db7899a7879e0a88d26f0199025 (diff)
downloadbcm5719-llvm-d8d4a57b37312b62dfa90226293db521e7a4a6fb.tar.gz
bcm5719-llvm-d8d4a57b37312b62dfa90226293db521e7a4a6fb.zip
First step in getting LLDB ready to support multiple different type systems.
This is the work done by Ryan Brown from http://reviews.llvm.org/D8712 that makes a TypeSystem class and abstracts types to be able to use a type system. All tests pass on MacOSX and passed on linux the last time this was submitted. llvm-svn: 244679
Diffstat (limited to 'lldb/source/DataFormatters/NSArray.cpp')
-rw-r--r--lldb/source/DataFormatters/NSArray.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/DataFormatters/NSArray.cpp b/lldb/source/DataFormatters/NSArray.cpp
index 640982efdb3..0e665bd3470 100644
--- a/lldb/source/DataFormatters/NSArray.cpp
+++ b/lldb/source/DataFormatters/NSArray.cpp
@@ -528,11 +528,11 @@ lldb_private::formatters::NSArrayISyntheticFrontEnd::NSArrayISyntheticFrontEnd (
m_items (0),
m_data_ptr (0)
{
- if (valobj_sp)
+ if (valobj_sp && valobj_sp->GetClangType().IsValid())
{
- clang::ASTContext *ast = valobj_sp->GetClangType().GetASTContext();
+ ClangASTContext *ast = valobj_sp->GetClangType().GetTypeSystem()->AsClangASTContext();
if (ast)
- m_id_type = ClangASTType(ast, ast->ObjCBuiltinIdTy);
+ m_id_type = ClangASTType(ast->getASTContext(), ast->getASTContext()->ObjCBuiltinIdTy);
}
}
OpenPOWER on IntegriCloud