diff options
Diffstat (limited to 'source/Target/UnwindAssembly.cpp')
-rw-r--r-- | source/Target/UnwindAssembly.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source/Target/UnwindAssembly.cpp b/source/Target/UnwindAssembly.cpp index af7f86fe492a..3dc443599016 100644 --- a/source/Target/UnwindAssembly.cpp +++ b/source/Target/UnwindAssembly.cpp @@ -1,4 +1,4 @@ -//===-- UnwindAssembly.cpp ------------------------------*- C++ -*-===// +//===-- UnwindAssembly.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,6 +7,10 @@ // //===----------------------------------------------------------------------===// +// C Includes +// C++ Includes +// Other libraries and framework includes +// Project includes #include "lldb/lldb-private.h" #include "lldb/Core/PluginManager.h" #include "lldb/Core/PluginInterface.h" @@ -21,14 +25,14 @@ UnwindAssembly::FindPlugin (const ArchSpec &arch) UnwindAssemblyCreateInstance create_callback; for (uint32_t idx = 0; - (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(idx)) != NULL; + (create_callback = PluginManager::GetUnwindAssemblyCreateCallbackAtIndex(idx)) != nullptr; ++idx) { UnwindAssemblySP assembly_profiler_ap (create_callback (arch)); - if (assembly_profiler_ap.get ()) + if (assembly_profiler_ap) return assembly_profiler_ap; } - return NULL; + return nullptr; } UnwindAssembly::UnwindAssembly (const ArchSpec &arch) : @@ -36,6 +40,4 @@ UnwindAssembly::UnwindAssembly (const ArchSpec &arch) : { } -UnwindAssembly::~UnwindAssembly () -{ -} +UnwindAssembly::~UnwindAssembly() = default; |