aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <risemann@apple.com>2019-11-30 15:30:08 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-02 13:27:21 +0100
commit4f728bfc13c45bc744bfdbfc3086bed74a8cbb4c (patch)
tree8770c087af4aba341ba85880dd369416b5942a10 /lldb/source/Commands/CommandObjectWatchpointCommand.cpp
parent76b70f6f75e90074bf2f5168383cc3afc21b61ad (diff)
downloadllvm-4f728bfc13c45bc744bfdbfc3086bed74a8cbb4c.zip
llvm-4f728bfc13c45bc744bfdbfc3086bed74a8cbb4c.tar.gz
llvm-4f728bfc13c45bc744bfdbfc3086bed74a8cbb4c.tar.bz2
[lldb][NFC] Use raw_ostream instead of Stream in Baton::GetDescription
Removing raw_ostream here is getting us closer to removing LLDB's Stream class.
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpointCommand.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectWatchpointCommand.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
index 5683381..92a91cf 100644
--- a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
+++ b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
@@ -611,10 +611,10 @@ protected:
const Baton *baton = wp_options->GetBaton();
if (baton) {
result.GetOutputStream().Printf("Watchpoint %u:\n", cur_wp_id);
- result.GetOutputStream().IndentMore();
- baton->GetDescription(&result.GetOutputStream(),
- eDescriptionLevelFull);
- result.GetOutputStream().IndentLess();
+ baton->GetDescription(result.GetOutputStream().AsRawOstream(),
+ eDescriptionLevelFull,
+ result.GetOutputStream().GetIndentLevel() +
+ 2);
} else {
result.AppendMessageWithFormat(
"Watchpoint %u does not have an associated command.\n",