[lldb][NFC] Remove GetASTContext call in ClangDeclVendor
authorRaphael Isemann <teemperor@gmail.com>
Sat, 28 Dec 2019 13:35:07 +0000 (14:35 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Sat, 28 Dec 2019 14:20:19 +0000 (15:20 +0100)
commit8612e92ed590e615f9f56e4fb86a1fdaf3a39e15
tree2241a497c37c59a587e5fb6f367f2d094e576ac4
parentd1b51c5de7a0b7a7d81c3b520614a139eb0160d2
[lldb][NFC] Remove GetASTContext call in ClangDeclVendor

Instead of returning NamedDecls and then calling GetASTContext
to find back the ClangASTContext we used can just implement the
FindDecl variant that returns CompilerDecls (and implement the
other function by throwing away the ClangASTContext part of the
compiler decl).
lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h
lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.h