diff options
Diffstat (limited to 'source/Target/TargetList.cpp')
| -rw-r--r-- | source/Target/TargetList.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source/Target/TargetList.cpp b/source/Target/TargetList.cpp index 5b262509cae79..7c7a36e97bbfe 100644 --- a/source/Target/TargetList.cpp +++ b/source/Target/TargetList.cpp @@ -1,9 +1,8 @@ //===-- TargetList.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 // //===----------------------------------------------------------------------===// @@ -35,9 +34,7 @@ ConstString &TargetList::GetStaticBroadcasterClass() { return class_name; } -//---------------------------------------------------------------------- // TargetList constructor -//---------------------------------------------------------------------- TargetList::TargetList(Debugger &debugger) : Broadcaster(debugger.GetBroadcasterManager(), TargetList::GetStaticBroadcasterClass().AsCString()), @@ -45,9 +42,7 @@ TargetList::TargetList(Debugger &debugger) CheckInWithManager(); } -//---------------------------------------------------------------------- // Destructor -//---------------------------------------------------------------------- TargetList::~TargetList() { std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex); m_target_list.clear(); @@ -427,7 +422,7 @@ Status TargetList::CreateTargetInternal(Debugger &debugger, if (file.GetDirectory()) { FileSpec file_dir; file_dir.GetDirectory() = file.GetDirectory(); - target_sp->GetExecutableSearchPaths().Append(file_dir); + target_sp->AppendExecutableSearchPaths(file_dir); } // Don't put the dummy target in the target list, it's held separately. |
