diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp b/contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp index 33860f8..6279427 100644 --- a/contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp +++ b/contrib/llvm/tools/lldb/source/Target/MemoryHistory.cpp @@ -17,17 +17,17 @@ using namespace lldb; using namespace lldb_private; -lldb::MemoryHistorySP -MemoryHistory::FindPlugin (const ProcessSP process) -{ - MemoryHistoryCreateInstance create_callback = nullptr; - - for (uint32_t idx = 0; (create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex(idx)) != nullptr; ++idx) - { - MemoryHistorySP memory_history_sp (create_callback (process)); - if (memory_history_sp) - return memory_history_sp; - } - - return MemoryHistorySP(); +lldb::MemoryHistorySP MemoryHistory::FindPlugin(const ProcessSP process) { + MemoryHistoryCreateInstance create_callback = nullptr; + + for (uint32_t idx = 0; + (create_callback = PluginManager::GetMemoryHistoryCreateCallbackAtIndex( + idx)) != nullptr; + ++idx) { + MemoryHistorySP memory_history_sp(create_callback(process)); + if (memory_history_sp) + return memory_history_sp; + } + + return MemoryHistorySP(); } |