1 //===-- UnwindAssembly.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 //===----------------------------------------------------------------------===//
12 // Other libraries and framework includes
14 #include "lldb/Target/UnwindAssembly.h"
15 #include "lldb/Core/PluginInterface.h"
16 #include "lldb/Core/PluginManager.h"
17 #include "lldb/lldb-private.h"
20 using namespace lldb_private;
22 UnwindAssemblySP UnwindAssembly::FindPlugin(const ArchSpec &arch) {
23 UnwindAssemblyCreateInstance create_callback;
25 for (uint32_t idx = 0;
26 (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(
29 UnwindAssemblySP assembly_profiler_ap(create_callback(arch));
30 if (assembly_profiler_ap)
31 return assembly_profiler_ap;
36 UnwindAssembly::UnwindAssembly(const ArchSpec &arch) : m_arch(arch) {}
38 UnwindAssembly::~UnwindAssembly() = default;