[lldb] Remove some calls to GetASTContext
authorRaphael Isemann <teemperor@gmail.com>
Wed, 25 Dec 2019 22:43:52 +0000 (23:43 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 26 Dec 2019 09:36:36 +0000 (10:36 +0100)
commitb036f557cee5b8eb87f0bffa7c305df6eda98437
tree0c6bd51eeb1ada6be3900eb42e0b08669b904fa9
parent073cdb239044dc056a3c79b995265f640ffb40e6
[lldb] Remove some calls to GetASTContext

GetASTContext is really expensive to call as it makes use of the global
mapping from ASTContext to ClangASTContext. This replaces all calls where
we already have the ClangASTContext around and don't need to call
GetASTContext again.
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
lldb/source/Symbol/ClangASTContext.cpp