diff options
author | Jim Ingham <jingham@apple.com> | 2016-03-21 19:21:13 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-03-21 19:21:13 +0000 |
commit | 6896b355854576eb2902a04b2dcb52b7f9b74f7e (patch) | |
tree | 5176b1ce964f471af37d8d881e208682e2371477 /lldb/source/Expression/UtilityFunction.cpp | |
parent | cdaf644c48d9f4deceb3afe6ee94a122fd3fc188 (diff) | |
download | bcm5719-llvm-6896b355854576eb2902a04b2dcb52b7f9b74f7e.tar.gz bcm5719-llvm-6896b355854576eb2902a04b2dcb52b7f9b74f7e.zip |
Compilation can end up calling functions (e.g. to resolve indirect functions) so I added
a way for compilation to take a "thread to use for compilation". If it isn't set then the
compilation will use the currently selected thread. This should help keep function execution
to the one thread intended.
llvm-svn: 263972
Diffstat (limited to 'lldb/source/Expression/UtilityFunction.cpp')
-rw-r--r-- | lldb/source/Expression/UtilityFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/UtilityFunction.cpp b/lldb/source/Expression/UtilityFunction.cpp index 78059615578..926d5804726 100644 --- a/lldb/source/Expression/UtilityFunction.cpp +++ b/lldb/source/Expression/UtilityFunction.cpp @@ -70,7 +70,7 @@ UtilityFunction::~UtilityFunction () // FIXME: We should check that every time this is called it is called with the same return type & arguments... FunctionCaller * -UtilityFunction::MakeFunctionCaller (const CompilerType &return_type, const ValueList &arg_value_list, Error &error) +UtilityFunction::MakeFunctionCaller (const CompilerType &return_type, const ValueList &arg_value_list, lldb::ThreadSP thread_to_use_sp, Error &error) { if (m_caller_up) return m_caller_up.get(); @@ -99,7 +99,7 @@ UtilityFunction::MakeFunctionCaller (const CompilerType &return_type, const Valu { DiagnosticManager diagnostics; - unsigned num_errors = m_caller_up->CompileFunction(diagnostics); + unsigned num_errors = m_caller_up->CompileFunction(thread_to_use_sp, diagnostics); if (num_errors) { error.SetErrorStringWithFormat("Error compiling %s caller function: \"%s\".", m_function_name.c_str(), |