1 //===-- JITLoader.cpp -------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/lldb-private.h"
11 #include "lldb/Target/JITLoader.h"
12 #include "lldb/Target/JITLoaderList.h"
13 #include "lldb/Target/Process.h"
14 #include "lldb/Core/PluginManager.h"
17 using namespace lldb_private;
20 JITLoader::LoadPlugins (Process *process, JITLoaderList &list)
22 JITLoaderCreateInstance create_callback = NULL;
23 for (uint32_t idx = 0; (create_callback = PluginManager::GetJITLoaderCreateCallbackAtIndex(idx)) != NULL; ++idx)
25 JITLoaderSP instance_sp(create_callback(process, false));
27 list.Append(std::move(instance_sp));
31 JITLoader::JITLoader(Process *process) :
36 JITLoader::~JITLoader()