@@ -2094,11 +2094,11 @@ bool CommandInterpreter::HandleCommand(const char *command_line,
2094
2094
// used instead of `GetSaveTrasncript()`. This is because the latter will
2095
2095
// fail when the command is "settings set interpreter.save-transcript true".
2096
2096
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 ();
2099
2099
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 ());
2102
2102
transcript_item->AddFloatItem (" durationInSeconds" ,
2103
2103
execute_time.get ().count ());
2104
2104
}
@@ -2632,11 +2632,11 @@ void CommandInterpreter::HandleCommands(const StringList &commands,
2632
2632
2633
2633
if (options.GetPrintResults ()) {
2634
2634
if (tmp_result.Succeeded ())
2635
- result.AppendMessage (tmp_result.GetOutputData ());
2635
+ result.AppendMessage (tmp_result.GetOutputString ());
2636
2636
}
2637
2637
2638
2638
if (!success || !tmp_result.Succeeded ()) {
2639
- llvm::StringRef error_msg = tmp_result.GetErrorData ();
2639
+ llvm::StringRef error_msg = tmp_result.GetErrorString ();
2640
2640
if (error_msg.empty ())
2641
2641
error_msg = " <unknown error>.\n " ;
2642
2642
if (options.GetStopOnError ()) {
@@ -3192,7 +3192,7 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
3192
3192
unsigned prompt_len = m_debugger.GetPrompt ().size ();
3193
3193
if (auto indent = result.GetDiagnosticIndent ()) {
3194
3194
llvm::StringRef diags =
3195
- result.GetInlineDiagnosticsData (prompt_len + *indent);
3195
+ result.GetInlineDiagnosticString (prompt_len + *indent);
3196
3196
PrintCommandOutput (io_handler, diags, true );
3197
3197
}
3198
3198
}
@@ -3201,13 +3201,13 @@ void CommandInterpreter::IOHandlerInputComplete(IOHandler &io_handler,
3201
3201
GetProcessOutput ();
3202
3202
3203
3203
if (!result.GetImmediateOutputStream ()) {
3204
- llvm::StringRef output = result.GetOutputData ();
3204
+ llvm::StringRef output = result.GetOutputString ();
3205
3205
PrintCommandOutput (io_handler, output, true );
3206
3206
}
3207
3207
3208
3208
// Now emit the command error text from the command we just executed.
3209
3209
if (!result.GetImmediateErrorStream ()) {
3210
- llvm::StringRef error = result.GetErrorData ();
3210
+ llvm::StringRef error = result.GetErrorString ();
3211
3211
PrintCommandOutput (io_handler, error, false );
3212
3212
}
3213
3213
}
0 commit comments