summaryrefslogtreecommitdiff
path: root/include/lldb/Expression/IRMemoryMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Expression/IRMemoryMap.h')
-rw-r--r--include/lldb/Expression/IRMemoryMap.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/lldb/Expression/IRMemoryMap.h b/include/lldb/Expression/IRMemoryMap.h
index 4faa5226d9b4..0da8384c8e63 100644
--- a/include/lldb/Expression/IRMemoryMap.h
+++ b/include/lldb/Expression/IRMemoryMap.h
@@ -69,14 +69,22 @@ public:
// This function can return NULL.
ExecutionContextScope *GetBestExecutionContextScope() const;
+ lldb::TargetSP
+ GetTarget ()
+ {
+ return m_target_wp.lock();
+ }
+
protected:
// This function should only be used if you know you are using the JIT.
// Any other cases should use GetBestExecutionContextScope().
- lldb::ProcessWP GetProcessWP ()
+
+ lldb::ProcessWP &
+ GetProcessWP ()
{
return m_process_wp;
}
-
+
private:
struct Allocation
{