diff options
author | Sean Callanan <scallanan@apple.com> | 2013-11-08 01:14:26 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-11-08 01:14:26 +0000 |
commit | a464f3d43a58a28cf5bbacbe6e0f74519367b697 (patch) | |
tree | d7fe859f8977660d4404cada0fa43e64287b345b /lldb/source/Expression/ClangFunction.cpp | |
parent | 949ec546c4414b879d565ac3cc7ac4487ed0ec76 (diff) | |
download | bcm5719-llvm-a464f3d43a58a28cf5bbacbe6e0f74519367b697.tar.gz bcm5719-llvm-a464f3d43a58a28cf5bbacbe6e0f74519367b697.zip |
Changed the ABIs and ClangFunction to take a
llvm::ArrayRef of arguments rather than taking
a fixed number of possibly-NULL pointers to
arguments.
Also changed ClangFunction::GetThreadPlanToCallFunction
to take the address of the argument struct by value
instead of by reference, since it doesn't actually
modify the value passed into it.
llvm-svn: 194232
Diffstat (limited to 'lldb/source/Expression/ClangFunction.cpp')
-rw-r--r-- | lldb/source/Expression/ClangFunction.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Expression/ClangFunction.cpp b/lldb/source/Expression/ClangFunction.cpp index 92a07971dbc..e707c60ffce 100644 --- a/lldb/source/Expression/ClangFunction.cpp +++ b/lldb/source/Expression/ClangFunction.cpp @@ -394,7 +394,7 @@ ClangFunction::InsertFunction (ExecutionContext &exe_ctx, lldb::addr_t &args_add ThreadPlan * ClangFunction::GetThreadPlanToCallFunction (ExecutionContext &exe_ctx, - lldb::addr_t &args_addr, + lldb::addr_t args_addr, const EvaluateExpressionOptions &options, Stream &errors) { @@ -414,13 +414,14 @@ ClangFunction::GetThreadPlanToCallFunction (ExecutionContext &exe_ctx, // Okay, now run the function: Address wrapper_address (m_jit_start_addr); + + lldb::addr_t args = { args_addr }; + ThreadPlan *new_plan = new ThreadPlanCallFunction (*thread, wrapper_address, ClangASTType(), - args_addr, - options, - 0, - 0); + args, + options); new_plan->SetIsMasterPlan(true); new_plan->SetOkayToDiscard (false); return new_plan; |