diff options
| author | Pavel Labath <pavel@labath.sk> | 2020-03-05 13:03:26 +0100 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2020-03-05 14:46:39 +0100 |
| commit | 04592d5b23178cfacfd0817f58fca8a0a24a71c7 (patch) | |
| tree | d033dde5933525417a7e0543f24bc21be8974051 /lldb/source/Symbol/Function.cpp | |
| parent | 29693fc12559c227cacc6f7eb69b30c86616670c (diff) | |
[lldb] s/ExecutionContext/Target in Disassembler
Some functions in this file only use the "target" component of an
execution context. Adjust the argument lists to reflect that.
This avoids some defensive null checks and simplifies most of the
callers.
Diffstat (limited to 'lldb/source/Symbol/Function.cpp')
| -rw-r--r-- | lldb/source/Symbol/Function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp index e867a7f80398..e1d5a720bcc3 100644 --- a/lldb/source/Symbol/Function.cpp +++ b/lldb/source/Symbol/Function.cpp @@ -420,11 +420,11 @@ lldb::DisassemblerSP Function::GetInstructions(const ExecutionContext &exe_ctx, const char *flavor, bool prefer_file_cache) { ModuleSP module_sp(GetAddressRange().GetBaseAddress().GetModule()); - if (module_sp) { + if (module_sp && exe_ctx.HasTargetScope()) { const bool prefer_file_cache = false; return Disassembler::DisassembleRange(module_sp->GetArchitecture(), nullptr, - flavor, exe_ctx, GetAddressRange(), - prefer_file_cache); + flavor, exe_ctx.GetTargetRef(), + GetAddressRange(), prefer_file_cache); } return lldb::DisassemblerSP(); } |
