@@ -2094,11 +2094,11 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
20942094 // used instead of `GetSaveTrasncript()`. This is because the latter will
20952095 // fail when the command is "settings set interpreter.save-transcript true".
20962096 if (transcript_item) {
2097- m_transcript_stream << result.GetOutputData ();
2098- m_transcript_stream << result.GetErrorData ();
2097+ m_transcript_stream << result.GetOutputString ();
2098+ m_transcript_stream << result.GetErrorString ();
20992099
2100- transcript_item->AddStringItem (" output" , result.GetOutputData ());
2101- transcript_item->AddStringItem (" error" , result.GetErrorData ());
2100+ transcript_item->AddStringItem (" output" , result.GetOutputString ());
2101+ transcript_item->AddStringItem (" error" , result.GetErrorString ());
21022102 transcript_item->AddFloatItem (" durationInSeconds" ,
21032103 execute_time.get ().count ());
21042104 }
@@ -2632,11 +2632,11 @@ void CommandInterpreter::HandleCommands(const StringList &commands,
26322632
26332633 if (options.GetPrintResults ()) {
26342634 if (tmp_result.Succeeded ())
2635- result.AppendMessage (tmp_result.GetOutputData ());
2635+ result.AppendMessage (tmp_result.GetOutputString ());
26362636 }
26372637
26382638 if (!success || !tmp_result.Succeeded ()) {
2639- llvm::StringRef error_msg = tmp_result.GetErrorData ();
2639+ llvm::StringRef error_msg = tmp_result.GetErrorString ();
26402640 if (error_msg.empty ())
26412641 error_msg = " <unknown error>.\n " ;
26422642 if (options.GetStopOnError ()) {
@@ -3192,7 +3192,7 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
31923192 unsigned prompt_len = m_debugger.GetPrompt ().size ();
31933193 if (auto indent = result.GetDiagnosticIndent ()) {
31943194 llvm::StringRef diags =
3195- result.GetInlineDiagnosticsData (prompt_len + *indent);
3195+ result.GetInlineDiagnosticString (prompt_len + *indent);
31963196 PrintCommandOutput (io_handler, diags, true );
31973197 }
31983198 }
@@ -3201,13 +3201,13 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
32013201 GetProcessOutput ();
32023202
32033203 if (!result.GetImmediateOutputStream ()) {
3204- llvm::StringRef output = result.GetOutputData ();
3204+ llvm::StringRef output = result.GetOutputString ();
32053205 PrintCommandOutput (io_handler, output, true );
32063206 }
32073207
32083208 // Now emit the command error text from the command we just executed.
32093209 if (!result.GetImmediateErrorStream ()) {
3210- llvm::StringRef error = result.GetErrorData ();
3210+ llvm::StringRef error = result.GetErrorString ();
32113211 PrintCommandOutput (io_handler, error, false );
32123212 }
32133213 }
0 commit comments