Skip to content

Commit a675143

Browse files
committed
fixup! rename Module->SymbolContext where it makes sense
1 parent b1bff20 commit a675143

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lldb/include/lldb/Expression/IRExecutionUnit.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ class IRExecutionUnit : public std::enable_shared_from_this<IRExecutionUnit>,
162162
return m_jitted_global_variables;
163163
}
164164

165-
void SetPreferredModules(SymbolContextList const &modules) {
166-
for (auto const &m : modules)
167-
if (m.module_sp)
168-
m_preferred_modules.Append(m.module_sp);
165+
void AppendPreferredSymbolContexts(SymbolContextList const &contexts) {
166+
for (auto const &ctx : contexts)
167+
if (ctx.module_sp)
168+
m_preferred_modules.Append(ctx.module_sp);
169169
}
170170

171171
private:

lldb/include/lldb/Target/Target.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ class EvaluateExpressionOptions {
333333
m_language = SourceLanguage(language_type);
334334
}
335335

336-
void SetPreferredSymbolContexts(SymbolContextList modules) {
337-
m_preferred_lookup_contexts = std::move(modules);
336+
void SetPreferredSymbolContexts(SymbolContextList contexts) {
337+
m_preferred_lookup_contexts = std::move(contexts);
338338
}
339339

340340
const SymbolContextList &GetPreferredSymbolContexts() const {

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ lldb_private::Status ClangExpressionParser::DoPrepareForExecution(
15401540
m_compiler->getTargetOpts().Features);
15411541

15421542
if (auto *options = m_expr.GetOptions())
1543-
execution_unit_sp->SetPreferredModules(
1543+
execution_unit_sp->AppendPreferredSymbolContexts(
15441544
options->GetPreferredSymbolContexts());
15451545

15461546
ClangExpressionHelper *type_system_helper =

0 commit comments

Comments
 (0)