[all-commits] [llvm/llvm-project] 49b206: [lldb][NFC] Remove all ASTContext getter wrappers ...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Sat Dec 21 06:47:50 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 49b206f95806f35ff8f9a715185355fc2a159760
https://github.com/llvm/llvm-project/commit/49b206f95806f35ff8f9a715185355fc2a159760
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2019-12-21 (Sat, 21 Dec 2019)
Changed paths:
M lldb/include/lldb/Symbol/ClangASTContext.h
M lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
M lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h
M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
M lldb/source/Symbol/ClangASTContext.cpp
M lldb/unittests/Expression/ClangExpressionDeclMapTest.cpp
M lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h
Log Message:
-----------
[lldb][NFC] Remove all ASTContext getter wrappers from ClangASTContext
Their naming is misleading as they only return the
ClangASTContext-owned variables. For ClangASTContext instances constructed
for a given clang::ASTContext they silently generated duplicated instances
(e.g., a second IdentifierTable) that were essentially unusable.
This removes all these getters as they are anyway not very useful in comparison
to just calling the clang::ASTContext getters. The initialization
code has been moved to the CreateASTContext initialization method so that all
code for making our own clang::ASTContext is in one place.
More information about the All-commits
mailing list