diff options
author | Pavel Labath <labath@google.com> | 2015-07-07 10:11:16 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-07-07 10:11:16 +0000 |
commit | 67add94108e93f5a0e00d5ebd7803c70f7f8eb3d (patch) | |
tree | 4c57b105c4903aad0cc9195940de501da211361f | |
parent | f805e1905cc703b23cbd1ee1987e1a2967ee2759 (diff) | |
download | bcm5719-llvm-67add94108e93f5a0e00d5ebd7803c70f7f8eb3d.tar.gz bcm5719-llvm-67add94108e93f5a0e00d5ebd7803c70f7f8eb3d.zip |
Fix build after recent clang interface changes
llvm-svn: 241573
4 files changed, 11 insertions, 5 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp index 2c4ecf4987c..9b4fe4f2689 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp @@ -192,7 +192,8 @@ AppleObjCDeclVendor::GetDeclForISA(ObjCLanguageRuntime::ObjCISA isa) ast_ctx->getTranslationUnitDecl(), clang::SourceLocation(), &identifier_info, - NULL); + nullptr, + nullptr); ClangASTMetadata meta_data; meta_data.SetISAPtr(isa); @@ -451,8 +452,9 @@ AppleObjCDeclVendor::FinishDecl(clang::ObjCInterfaceDecl *interface_decl) return; FinishDecl(superclass_decl); - - interface_decl->setSuperClass(superclass_decl); + clang::ASTContext *context = m_ast_ctx.getASTContext(); + interface_decl->setSuperClass( + context->getTrivialTypeSourceInfo(context->getObjCInterfaceType(superclass_decl))); }; auto instance_method_func = [log, interface_decl, this](const char *name, const char *types) -> bool diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 3c3e2e51d9a..68bcde8a47c 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -1592,6 +1592,7 @@ ClangASTContext::CreateObjCClass SourceLocation(), &ast->Idents.get(name), nullptr, + nullptr, SourceLocation(), /*isForwardDecl,*/ isInternal); diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp index 64a7323d25c..f6c8880bbcb 100644 --- a/lldb/source/Symbol/ClangASTImporter.cpp +++ b/lldb/source/Symbol/ClangASTImporter.cpp @@ -568,7 +568,8 @@ ClangASTImporter::Minion::ImportDefinitionTo (clang::Decl *to, clang::Decl *from if (!to_objc_interface->hasDefinition()) to_objc_interface->startDefinition(); - to_objc_interface->setSuperClass(imported_from_superclass); + to_objc_interface->setSuperClass( + m_source_ctx->getTrivialTypeSourceInfo(m_source_ctx->getObjCInterfaceType(imported_from_superclass))); } while (0); } diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index a62cc9f45a6..6f1002fbd9f 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -5354,7 +5354,9 @@ ClangASTType::SetObjCSuperClass (const ClangASTType &superclass_clang_type) clang::ObjCInterfaceDecl *super_interface_decl = superclass_clang_type.GetAsObjCInterfaceDecl (); if (class_interface_decl && super_interface_decl) { - class_interface_decl->setSuperClass(super_interface_decl); + + class_interface_decl->setSuperClass( + m_ast->getTrivialTypeSourceInfo(m_ast->getObjCInterfaceType(super_interface_decl))); return true; } } |