]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Target/JITLoader.cpp
Upgrade to OpenSSH 6.7p1, retaining libwrap support (which has been removed
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Target / JITLoader.cpp
1 //===-- JITLoader.cpp -------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
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"
15
16 using namespace lldb;
17 using namespace lldb_private;
18
19 void
20 JITLoader::LoadPlugins (Process *process, JITLoaderList &list)
21 {
22     JITLoaderCreateInstance create_callback = NULL;
23     for (uint32_t idx = 0; (create_callback = PluginManager::GetJITLoaderCreateCallbackAtIndex(idx)) != NULL; ++idx)
24     {
25         JITLoaderSP instance_sp(create_callback(process, false));
26         if (instance_sp)
27             list.Append(std::move(instance_sp));
28     }
29 }
30
31 JITLoader::JITLoader(Process *process) :
32     m_process (process)
33 {
34 }
35
36 JITLoader::~JITLoader()
37 {
38 }