diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-12-21 15:26:24 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-21 15:41:18 +0100 |
commit | 49b206f95806f35ff8f9a715185355fc2a159760 (patch) | |
tree | 7752b53ba9b2db4b69c00f22526a5c8428fb8775 /lldb/unittests/TestingSupport/Symbol | |
parent | d269255b95151dcd232c8856206b7e79d70eda29 (diff) | |
download | bcm5719-llvm-49b206f95806f35ff8f9a715185355fc2a159760.tar.gz bcm5719-llvm-49b206f95806f35ff8f9a715185355fc2a159760.zip |
[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.
Diffstat (limited to 'lldb/unittests/TestingSupport/Symbol')
-rw-r--r-- | lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h b/lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h index b1b1f30e2f6..f9590825e07 100644 --- a/lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h +++ b/lldb/unittests/TestingSupport/Symbol/ClangTestUtils.h @@ -17,7 +17,7 @@ namespace lldb_private { namespace clang_utils { inline clang::DeclarationName getDeclarationName(ClangASTContext &ast, llvm::StringRef name) { - clang::IdentifierInfo &II = ast.getIdentifierTable()->get(name); + clang::IdentifierInfo &II = ast.getASTContext()->Idents.get(name); return ast.getASTContext()->DeclarationNames.getIdentifier(&II); } |