[lldb][NFC] Remove unused callback functionality from ClangASTContext

This commit is contained in:
Raphael Isemann 2019-12-23 13:29:05 +01:00
parent b714583fd0
commit 982a9e3d46
2 changed files with 0 additions and 8 deletions

View File

@ -964,9 +964,6 @@ protected:
std::unique_ptr<PDBASTParser> m_pdb_ast_parser_up;
std::unique_ptr<ClangASTSource> m_scratch_ast_source_up;
std::unique_ptr<clang::MangleContext> m_mangle_ctx_up;
CompleteTagDeclCallback m_callback_tag_decl = nullptr;
CompleteObjCInterfaceDeclCallback m_callback_objc_decl = nullptr;
void *m_callback_baton = nullptr;
uint32_t m_pointer_byte_size = 0;
bool m_ast_owned = false;
/// The sema associated that is currently used to build this ASTContext.

View File

@ -721,11 +721,6 @@ void ClangASTContext::CreateASTContext() {
if (target_info)
m_ast_up->InitBuiltinTypes(*target_info);
if ((m_callback_tag_decl || m_callback_objc_decl) && m_callback_baton) {
m_ast_up->getTranslationUnitDecl()->setHasExternalLexicalStorage();
// m_ast_up->getTranslationUnitDecl()->setHasExternalVisibleStorage();
}
GetASTMap().Insert(m_ast_up.get(), this);
llvm::IntrusiveRefCntPtr<clang::ExternalASTSource> ast_source_up(