diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-21 04:31:13 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-21 04:31:13 +0000 |
| commit | 43edccdfe13dd4d0e61188b453a1faf9176680a3 (patch) | |
| tree | 59d2a0e22a803d8ffe15f6a18182b9fd751362f4 /lldb/source | |
| parent | 64cfdfea5a18472f766d668c30fac7534cddeda5 (diff) | |
| download | bcm5719-llvm-43edccdfe13dd4d0e61188b453a1faf9176680a3.tar.gz bcm5719-llvm-43edccdfe13dd4d0e61188b453a1faf9176680a3.zip | |
Update for Clang API change in r230123 -- lookup_result was always
const, there was never a need for lookup_const_result. Now that vestigal
type is gone, so switch LLDB to lookup_result and to use the
DeclContextLookupResult rather than the Const variant.
llvm-svn: 230126
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Expression/ClangASTSource.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index 9a6d6e53225..6103738974a 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -2008,7 +2008,7 @@ NameSearchContext::AddTypeDecl(const ClangASTType &clang_type) } void -NameSearchContext::AddLookupResult (clang::DeclContextLookupConstResult result) +NameSearchContext::AddLookupResult (clang::DeclContextLookupResult result) { for (clang::NamedDecl *decl : result) m_decls.push_back (decl); diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp index e76e6128538..ee5e3183508 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp @@ -60,7 +60,7 @@ public: if (!m_decl_vendor.FinishDecl(non_const_interface_decl)) break; - clang::DeclContext::lookup_const_result result = non_const_interface_decl->lookup(name); + clang::DeclContext::lookup_result result = non_const_interface_decl->lookup(name); return (result.size() != 0); } @@ -588,7 +588,7 @@ AppleObjCDeclVendor::FindDecls (const ConstString &name, clang::IdentifierInfo &identifier_info = ast_ctx->Idents.get(name.GetStringRef()); clang::DeclarationName decl_name = ast_ctx->DeclarationNames.getIdentifier(&identifier_info); - clang::DeclContext::lookup_const_result lookup_result = ast_ctx->getTranslationUnitDecl()->lookup(decl_name); + clang::DeclContext::lookup_result lookup_result = ast_ctx->getTranslationUnitDecl()->lookup(decl_name); if (!lookup_result.empty()) { |

