@@ -613,7 +613,7 @@ lldb::TypeSystemSP TypeSystemClang::CreateInstance(lldb::LanguageType language,
613
613
" ASTContext for '" + module ->GetFileSpec ().GetPath () + " '" ;
614
614
return std::make_shared<TypeSystemClang>(ast_name, triple);
615
615
} else if (target && target->IsValid ())
616
- return std::make_shared<TypeSystemClangForExpressions >(*target, triple);
616
+ return std::make_shared<ScratchTypeSystemClang >(*target, triple);
617
617
return lldb::TypeSystemSP ();
618
618
}
619
619
@@ -9567,8 +9567,8 @@ TypeSystemClang::DeclContextGetTypeSystemClang(const CompilerDeclContext &dc) {
9567
9567
return nullptr ;
9568
9568
}
9569
9569
9570
- TypeSystemClangForExpressions::TypeSystemClangForExpressions (
9571
- Target &target, llvm::Triple triple)
9570
+ ScratchTypeSystemClang::ScratchTypeSystemClang (Target &target,
9571
+ llvm::Triple triple)
9572
9572
: TypeSystemClang(" scratch ASTContext" , triple),
9573
9573
m_target_wp(target.shared_from_this()),
9574
9574
m_persistent_variables(new ClangPersistentVariables) {
@@ -9580,16 +9580,15 @@ TypeSystemClangForExpressions::TypeSystemClangForExpressions(
9580
9580
SetExternalSource (proxy_ast_source);
9581
9581
}
9582
9582
9583
- void TypeSystemClangForExpressions ::Finalize () {
9583
+ void ScratchTypeSystemClang ::Finalize () {
9584
9584
TypeSystemClang::Finalize ();
9585
9585
m_scratch_ast_source_up.reset ();
9586
9586
}
9587
9587
9588
- UserExpression *TypeSystemClangForExpressions ::GetUserExpression (
9588
+ UserExpression *ScratchTypeSystemClang ::GetUserExpression (
9589
9589
llvm::StringRef expr, llvm::StringRef prefix, lldb::LanguageType language,
9590
9590
Expression::ResultType desired_type,
9591
- const EvaluateExpressionOptions &options,
9592
- ValueObject *ctx_obj) {
9591
+ const EvaluateExpressionOptions &options, ValueObject *ctx_obj) {
9593
9592
TargetSP target_sp = m_target_wp.lock ();
9594
9593
if (!target_sp)
9595
9594
return nullptr ;
@@ -9598,7 +9597,7 @@ UserExpression *TypeSystemClangForExpressions::GetUserExpression(
9598
9597
desired_type, options, ctx_obj);
9599
9598
}
9600
9599
9601
- FunctionCaller *TypeSystemClangForExpressions ::GetFunctionCaller (
9600
+ FunctionCaller *ScratchTypeSystemClang ::GetFunctionCaller (
9602
9601
const CompilerType &return_type, const Address &function_address,
9603
9602
const ValueList &arg_value_list, const char *name) {
9604
9603
TargetSP target_sp = m_target_wp.lock ();
@@ -9614,8 +9613,8 @@ FunctionCaller *TypeSystemClangForExpressions::GetFunctionCaller(
9614
9613
}
9615
9614
9616
9615
std::unique_ptr<UtilityFunction>
9617
- TypeSystemClangForExpressions ::CreateUtilityFunction (std::string text,
9618
- std::string name) {
9616
+ ScratchTypeSystemClang ::CreateUtilityFunction (std::string text,
9617
+ std::string name) {
9619
9618
TargetSP target_sp = m_target_wp.lock ();
9620
9619
if (!target_sp)
9621
9620
return {};
@@ -9625,6 +9624,6 @@ TypeSystemClangForExpressions::CreateUtilityFunction(std::string text,
9625
9624
}
9626
9625
9627
9626
PersistentExpressionState *
9628
- TypeSystemClangForExpressions ::GetPersistentExpressionState () {
9627
+ ScratchTypeSystemClang ::GetPersistentExpressionState () {
9629
9628
return m_persistent_variables.get ();
9630
9629
}
0 commit comments