[all-commits] [llvm/llvm-project] b036f5: [lldb] Remove some calls to GetASTContext

Raphael Isemann via All-commits all-commits at lists.llvm.org
Thu Dec 26 01:37:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b036f557cee5b8eb87f0bffa7c305df6eda98437
      https://github.com/llvm/llvm-project/commit/b036f557cee5b8eb87f0bffa7c305df6eda98437
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2019-12-26 (Thu, 26 Dec 2019)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
    M lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
    M lldb/source/Symbol/ClangASTContext.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list