[all-commits] [llvm/llvm-project] 36fb19: [lldb][NFC] Remove GetASTContext call in ClangPers...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Sat Dec 28 13:45:42 PST 2019


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

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h

  Log Message:
  -----------
  [lldb][NFC] Remove GetASTContext call in ClangPersistentVariables

We try to build a CompilerType from the persistent decls so we need
a ClangASTContext. With this patch the ClangPersistentVariables store
the associated ClangASTContext of the persistent decls (which is
always the scratch ClangASTContext) and no longer call GetASTContext
to map back from clang::ASTContext to ClangASTContext.




More information about the All-commits mailing list