Path: blob/main/contrib/llvm-project/lldb/source/Target/JITLoader.cpp
39587 views
//===-- JITLoader.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/Target/JITLoader.h"9#include "lldb/Core/PluginManager.h"10#include "lldb/Target/JITLoaderList.h"11#include "lldb/Target/Process.h"12#include "lldb/lldb-private.h"1314using namespace lldb;15using namespace lldb_private;1617void JITLoader::LoadPlugins(Process *process, JITLoaderList &list) {18JITLoaderCreateInstance create_callback = nullptr;19for (uint32_t idx = 0;20(create_callback =21PluginManager::GetJITLoaderCreateCallbackAtIndex(idx)) != nullptr;22++idx) {23JITLoaderSP instance_sp(create_callback(process, false));24if (instance_sp)25list.Append(std::move(instance_sp));26}27}2829JITLoader::JITLoader(Process *process) : m_process(process) {}3031JITLoader::~JITLoader() = default;323334