diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /source/Target/UnwindAssembly.cpp | |
parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) |
Notes
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; |