@@ -2106,11 +2106,11 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
21062106 // used instead of `GetSaveTrasncript()`. This is because the latter will
21072107 // fail when the command is "settings set interpreter.save-transcript true".
21082108 if (transcript_item) {
2109- m_transcript_stream << result.GetOutputData ();
2110- m_transcript_stream << result.GetErrorData ();
2109+ m_transcript_stream << result.GetOutputString ();
2110+ m_transcript_stream << result.GetErrorString ();
21112111
2112- transcript_item->AddStringItem (" output" , result.GetOutputData ());
2113- transcript_item->AddStringItem (" error" , result.GetErrorData ());
2112+ transcript_item->AddStringItem (" output" , result.GetOutputString ());
2113+ transcript_item->AddStringItem (" error" , result.GetErrorString ());
21142114 transcript_item->AddFloatItem (" durationInSeconds" ,
21152115 execute_time.get ().count ());
21162116 }
@@ -2644,11 +2644,11 @@ void CommandInterpreter::HandleCommands(const StringList &commands,
26442644
26452645 if (options.GetPrintResults ()) {
26462646 if (tmp_result.Succeeded ())
2647- result.AppendMessage (tmp_result.GetOutputData ());
2647+ result.AppendMessage (tmp_result.GetOutputString ());
26482648 }
26492649
26502650 if (!success || !tmp_result.Succeeded ()) {
2651- llvm::StringRef error_msg = tmp_result.GetErrorData ();
2651+ llvm::StringRef error_msg = tmp_result.GetErrorString ();
26522652 if (error_msg.empty ())
26532653 error_msg = " <unknown error>.\n " ;
26542654 if (options.GetStopOnError ()) {
@@ -3204,7 +3204,7 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
32043204 unsigned prompt_len = m_debugger.GetPrompt ().size ();
32053205 if (auto indent = result.GetDiagnosticIndent ()) {
32063206 llvm::StringRef diags =
3207- result.GetInlineDiagnosticsData (prompt_len + *indent);
3207+ result.GetInlineDiagnosticString (prompt_len + *indent);
32083208 PrintCommandOutput (io_handler, diags, true );
32093209 }
32103210 }
@@ -3213,13 +3213,13 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
32133213 GetProcessOutput ();
32143214
32153215 if (!result.GetImmediateOutputStream ()) {
3216- llvm::StringRef output = result.GetOutputData ();
3216+ llvm::StringRef output = result.GetOutputString ();
32173217 PrintCommandOutput (io_handler, output, true );
32183218 }
32193219
32203220 // Now emit the command error text from the command we just executed.
32213221 if (!result.GetImmediateErrorStream ()) {
3222- llvm::StringRef error = result.GetErrorData ();
3222+ llvm::StringRef error = result.GetErrorString ();
32233223 PrintCommandOutput (io_handler, error, false );
32243224 }
32253225 }
0 commit comments