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/Core | |
parent | e6eea5d055d06db7aefdfa879ae052a2d34ab464 (diff) | |
download | bcm5719-llvm-c33ae024a64962cb38b64073a035a5fc36aa2214.tar.gz bcm5719-llvm-c33ae024a64962cb38b64073a035a5fc36aa2214.zip |
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/Core')
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 6 | ||||
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Core/ValueObjectMemory.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 8718b37b95e..48b8c5c8c2c 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -338,11 +338,11 @@ ValueObject::MaybeCalculateCompleteType () ClangASTType class_type; bool is_pointer_type = false; - if (clang_type.IsObjCObjectPointerType(&class_type)) + if (ClangASTContext::IsObjCObjectPointerType(clang_type, &class_type)) { is_pointer_type = true; } - else if (clang_type.IsObjCObjectOrInterfaceType()) + else if (ClangASTContext::IsObjCObjectOrInterfaceType(clang_type)) { class_type = clang_type; } @@ -2419,7 +2419,7 @@ ValueObject::GetBaseClassPath (Stream &s) bool parent_had_base_class = GetParent() && GetParent()->GetBaseClassPath (s); ClangASTType clang_type = GetClangType(); std::string cxx_class_name; - bool this_had_base_class = clang_type.GetCXXClassName (cxx_class_name); + bool this_had_base_class = ClangASTContext::GetCXXClassName (clang_type, cxx_class_name); if (this_had_base_class) { if (parent_had_base_class) diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index 89b98a1db1b..9eaa6c3756d 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -154,7 +154,7 @@ FixupTypeAndOrName (const TypeAndOrName& type_andor_name, if (parent.IsPointerType()) corrected_type = orig_type.GetPointerType (); else if (parent.IsPointerOrReferenceType()) - corrected_type = orig_type.GetLValueReferenceType (); + corrected_type = ClangASTContext::GetLValueReferenceType(orig_type); ret.SetClangASTType(corrected_type); } else /*if (m_dynamic_type_info.HasName())*/ diff --git a/lldb/source/Core/ValueObjectMemory.cpp b/lldb/source/Core/ValueObjectMemory.cpp index 9f1953138f6..31a8d5c1f4f 100644 --- a/lldb/source/Core/ValueObjectMemory.cpp +++ b/lldb/source/Core/ValueObjectMemory.cpp @@ -97,7 +97,7 @@ ValueObjectMemory::ValueObjectMemory (ExecutionContextScope *exe_scope, m_clang_type(ast_type) { // Do not attempt to construct one of these objects with no variable! - assert (m_clang_type.GetASTContext()); + assert (m_clang_type.GetTypeSystem()); assert (m_clang_type.GetOpaqueQualType()); TargetSP target_sp (GetTargetSP()); |