diff options
author | Greg Clayton <gclayton@apple.com> | 2015-08-11 21:38:15 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-08-11 21:38:15 +0000 |
commit | d8d4a57b37312b62dfa90226293db521e7a4a6fb (patch) | |
tree | ace5d255c1f17af9a9e482ba3e61ed20a05c30c6 /lldb/source/Target/ObjCLanguageRuntime.cpp | |
parent | 78046b49a9397db7899a7879e0a88d26f0199025 (diff) | |
download | bcm5719-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/Target/ObjCLanguageRuntime.cpp')
-rw-r--r-- | lldb/source/Target/ObjCLanguageRuntime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/ObjCLanguageRuntime.cpp b/lldb/source/Target/ObjCLanguageRuntime.cpp index e54dd5b4920..73d7899f2a5 100644 --- a/lldb/source/Target/ObjCLanguageRuntime.cpp +++ b/lldb/source/Target/ObjCLanguageRuntime.cpp @@ -136,7 +136,7 @@ ObjCLanguageRuntime::LookupInCompleteClassCache (ConstString &name) { TypeSP type_sp (types.GetTypeAtIndex(i)); - if (type_sp->GetClangForwardType().IsObjCObjectOrInterfaceType()) + if (ClangASTContext::IsObjCObjectOrInterfaceType(type_sp->GetClangForwardType())) { if (type_sp->IsCompleteObjCClass()) { @@ -648,7 +648,7 @@ bool ObjCLanguageRuntime::GetTypeBitSize (const ClangASTType& clang_type, uint64_t &size) { - void *opaque_ptr = clang_type.GetQualType().getAsOpaquePtr(); + void *opaque_ptr = clang_type.GetOpaqueQualType(); size = m_type_size_cache.Lookup(opaque_ptr); // an ObjC object will at least have an ISA, so 0 is definitely not OK if (size > 0) |