diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-10-02 12:38:04 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-10-02 12:38:04 +0000 |
commit | b4664be11e178e75cd851fa4b9a23f234c893ff6 (patch) | |
tree | c2d2b82ccace2d9816ab644537a1ca798505249e /source | |
parent | 738ee4d5a6e59c15da53114826bd8ed3e11e628d (diff) | |
download | lldb-b4664be11e178e75cd851fa4b9a23f234c893ff6.tar.gz |
[lldb][NFC] Remove ClangASTContext::Clear
We now only use this function directly after initialization. As Clear()
resets the ASTContext back to its initial state, this is just a no-op.
There are no other users for this and we no longer can set the ASTContext
after construction, so Clear has no useful purpose anymore. It's also
mostly copy-pasted from Finalize().
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@373460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source')
-rw-r--r-- | source/Symbol/ClangASTContext.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/Symbol/ClangASTContext.cpp b/source/Symbol/ClangASTContext.cpp index 97952469c..30d8b1dd0 100644 --- a/source/Symbol/ClangASTContext.cpp +++ b/source/Symbol/ClangASTContext.cpp @@ -660,18 +660,6 @@ void ClangASTContext::Finalize() { m_scratch_ast_source_up.reset(); } -void ClangASTContext::Clear() { - m_language_options_up.reset(); - m_source_manager_up.reset(); - m_diagnostics_engine_up.reset(); - m_target_options_rp.reset(); - m_target_info_up.reset(); - m_identifier_table_up.reset(); - m_selector_table_up.reset(); - m_builtins_up.reset(); - m_pointer_byte_size = 0; -} - void ClangASTContext::setSema(Sema *s) { // Ensure that the new sema actually belongs to our ASTContext. assert(s == nullptr || &s->getASTContext() == m_ast_up.get()); @@ -683,7 +671,6 @@ const char *ClangASTContext::GetTargetTriple() { } void ClangASTContext::SetTargetTriple(llvm::StringRef target_triple) { - Clear(); m_target_triple = target_triple.str(); } |