aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectLog.cpp
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-06-24 12:33:12 -0700
committerAlex Langford <alangford@apple.com>2023-06-26 10:36:41 -0700
commit5f69e6682bf0806c13098f79cb5f1ee30f0f8c06 (patch)
treeec8e72ccc9615602a36d8df4e7070ceb5ebc8848 /lldb/source/Commands/CommandObjectLog.cpp
parent718e0cd6e7240a1233991eec472aa904800dce00 (diff)
downloadllvm-5f69e6682bf0806c13098f79cb5f1ee30f0f8c06.zip
llvm-5f69e6682bf0806c13098f79cb5f1ee30f0f8c06.tar.gz
llvm-5f69e6682bf0806c13098f79cb5f1ee30f0f8c06.tar.bz2
[lldb][NFCI] Timer::DumpCategoryTimes should take a reference instead of a pointer
We are assuming that the pointer is always valid, might as well take a reference instead. Differential Revision: https://reviews.llvm.org/D153711
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectLog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp
index 8549d22..5dd6f89 100644
--- a/lldb/source/Commands/CommandObjectLog.cpp
+++ b/lldb/source/Commands/CommandObjectLog.cpp
@@ -504,7 +504,7 @@ public:
protected:
bool DoExecute(Args &args, CommandReturnObject &result) override {
- Timer::DumpCategoryTimes(&result.GetOutputStream());
+ Timer::DumpCategoryTimes(result.GetOutputStream());
Timer::SetDisplayDepth(0);
result.SetStatus(eReturnStatusSuccessFinishResult);
@@ -527,7 +527,7 @@ public:
protected:
bool DoExecute(Args &args, CommandReturnObject &result) override {
- Timer::DumpCategoryTimes(&result.GetOutputStream());
+ Timer::DumpCategoryTimes(result.GetOutputStream());
result.SetStatus(eReturnStatusSuccessFinishResult);
if (!result.Succeeded()) {