summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/UnwindAssembly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/UnwindAssembly.cpp')
-rw-r--r--lldb/source/Target/UnwindAssembly.cpp35
1 files changed, 15 insertions, 20 deletions
diff --git a/lldb/source/Target/UnwindAssembly.cpp b/lldb/source/Target/UnwindAssembly.cpp
index 3dc44359901..3b2b7bf1702 100644
--- a/lldb/source/Target/UnwindAssembly.cpp
+++ b/lldb/source/Target/UnwindAssembly.cpp
@@ -11,33 +11,28 @@
// C++ Includes
// Other libraries and framework includes
// Project includes
-#include "lldb/lldb-private.h"
-#include "lldb/Core/PluginManager.h"
-#include "lldb/Core/PluginInterface.h"
#include "lldb/Target/UnwindAssembly.h"
+#include "lldb/Core/PluginInterface.h"
+#include "lldb/Core/PluginManager.h"
+#include "lldb/lldb-private.h"
using namespace lldb;
using namespace lldb_private;
-UnwindAssemblySP
-UnwindAssembly::FindPlugin (const ArchSpec &arch)
-{
- UnwindAssemblyCreateInstance create_callback;
+UnwindAssemblySP UnwindAssembly::FindPlugin(const ArchSpec &arch) {
+ UnwindAssemblyCreateInstance create_callback;
- for (uint32_t idx = 0;
- (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(idx)) != nullptr;
- ++idx)
- {
- UnwindAssemblySP assembly_profiler_ap (create_callback (arch));
- if (assembly_profiler_ap)
- return assembly_profiler_ap;
- }
- return nullptr;
+ for (uint32_t idx = 0;
+ (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(
+ idx)) != nullptr;
+ ++idx) {
+ UnwindAssemblySP assembly_profiler_ap(create_callback(arch));
+ if (assembly_profiler_ap)
+ return assembly_profiler_ap;
+ }
+ return nullptr;
}
-UnwindAssembly::UnwindAssembly (const ArchSpec &arch) :
- m_arch (arch)
-{
-}
+UnwindAssembly::UnwindAssembly(const ArchSpec &arch) : m_arch(arch) {}
UnwindAssembly::~UnwindAssembly() = default;
OpenPOWER on IntegriCloud