diff options
Diffstat (limited to 'source/Breakpoint/Watchpoint.cpp')
| -rw-r--r-- | source/Breakpoint/Watchpoint.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/Breakpoint/Watchpoint.cpp b/source/Breakpoint/Watchpoint.cpp index 34daaee64ccd..e8a926527d24 100644 --- a/source/Breakpoint/Watchpoint.cpp +++ b/source/Breakpoint/Watchpoint.cpp @@ -1,9 +1,8 @@ //===-- Watchpoint.cpp ------------------------------------------*- C++ -*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -273,25 +272,26 @@ bool Watchpoint::InvokeCallback(StoppointCallbackContext *context) { void Watchpoint::SetCondition(const char *condition) { if (condition == nullptr || condition[0] == '\0') { - if (m_condition_ap.get()) - m_condition_ap.reset(); + if (m_condition_up) + m_condition_up.reset(); } else { // Pass nullptr for expr_prefix (no translation-unit level definitions). Status error; - m_condition_ap.reset(m_target.GetUserExpressionForLanguage( + m_condition_up.reset(m_target.GetUserExpressionForLanguage( condition, llvm::StringRef(), lldb::eLanguageTypeUnknown, - UserExpression::eResultTypeAny, EvaluateExpressionOptions(), error)); + UserExpression::eResultTypeAny, EvaluateExpressionOptions(), nullptr, + error)); if (error.Fail()) { // FIXME: Log something... - m_condition_ap.reset(); + m_condition_up.reset(); } } SendWatchpointChangedEvent(eWatchpointEventTypeConditionChanged); } const char *Watchpoint::GetConditionText() const { - if (m_condition_ap.get()) - return m_condition_ap->GetUserText(); + if (m_condition_up) + return m_condition_up->GetUserText(); else return nullptr; } @@ -325,12 +325,12 @@ Watchpoint::WatchpointEventData::WatchpointEventData( Watchpoint::WatchpointEventData::~WatchpointEventData() = default; -const ConstString &Watchpoint::WatchpointEventData::GetFlavorString() { +ConstString Watchpoint::WatchpointEventData::GetFlavorString() { static ConstString g_flavor("Watchpoint::WatchpointEventData"); return g_flavor; } -const ConstString &Watchpoint::WatchpointEventData::GetFlavor() const { +ConstString Watchpoint::WatchpointEventData::GetFlavor() const { return WatchpointEventData::GetFlavorString(); } |
