[Symbol] Give ClangASTContext a PersistentExpressionState instead of a ClangPersisten...
authorAlex Langford <apl@fb.com>
Mon, 9 Sep 2019 23:11:43 +0000 (23:11 +0000)
committerAlex Langford <apl@fb.com>
Mon, 9 Sep 2019 23:11:43 +0000 (23:11 +0000)
commit9e86561878dc470c4023cd627dd39cafc13fdc4d
tree5d5b90120c8e9a0783568aafba043d51ae41f0f6
parent865697f9b9add3030c1a2637aac6f755c573f781
[Symbol] Give ClangASTContext a PersistentExpressionState instead of a ClangPersistentVariables

ClangASTContext doesn't use m_persistent_variables in a way specific to
ClangPersistentVariables. Therefore, it should hold a unique pointer to
PersistentExpressionState instead of a ClangPersistentVariablesUP.
This also prevents you from pulling in a plugin header when including
ClangASTContext.h

Doing this exposed an implicit dependency in ObjCLanguage that was
corrected by including ClangModulesDeclVendor.h

llvm-svn: 371470
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
lldb/source/Symbol/ClangASTContext.cpp