Path: blob/main/contrib/llvm-project/lldb/source/Expression/Expression.cpp
39587 views
//===-- Expression.cpp ----------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Expression/Expression.h"9#include "lldb/Target/ExecutionContextScope.h"10#include "lldb/Target/Target.h"1112using namespace lldb_private;1314Expression::Expression(Target &target)15: m_target_wp(target.shared_from_this()),16m_jit_start_addr(LLDB_INVALID_ADDRESS),17m_jit_end_addr(LLDB_INVALID_ADDRESS) {18// Can't make any kind of expression without a target.19assert(m_target_wp.lock());20}2122Expression::Expression(ExecutionContextScope &exe_scope)23: m_target_wp(exe_scope.CalculateTarget()),24m_jit_start_addr(LLDB_INVALID_ADDRESS),25m_jit_end_addr(LLDB_INVALID_ADDRESS) {26assert(m_target_wp.lock());27}282930