LLDB  mainline
Expression.cpp
Go to the documentation of this file.
1 //===-- Expression.cpp ----------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
11 #include "lldb/Target/Target.h"
12 
13 using namespace lldb_private;
14 
16  : m_target_wp(target.shared_from_this()),
17  m_jit_start_addr(LLDB_INVALID_ADDRESS),
18  m_jit_end_addr(LLDB_INVALID_ADDRESS) {
19  // Can't make any kind of expression without a target.
20  assert(m_target_wp.lock());
21 }
22 
24  : m_target_wp(exe_scope.CalculateTarget()),
25  m_jit_start_addr(LLDB_INVALID_ADDRESS),
26  m_jit_end_addr(LLDB_INVALID_ADDRESS) {
27  assert(m_target_wp.lock());
28 }
lldb_private::Target
Definition: Target.h:469
Target.h
lldb_private::ExecutionContextScope
Definition: ExecutionContextScope.h:32
lldb_private::Expression::Expression
Expression(Target &target)
Definition: Expression.cpp:15
lldb_private::Expression::m_target_wp
lldb::TargetWP m_target_wp
Definition: Expression.h:92
ExecutionContextScope.h
LLDB_INVALID_ADDRESS
#define LLDB_INVALID_ADDRESS
Definition: lldb-defines.h:74
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
Expression.h