mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Remove the “len” defaulted parameter from CommandReturnObject::AppendMessage, AppendWarning and AppendError. Nobody was using them, and it meant if you accidentally used the AppendWarning when you meant AppendWarningWithFormat with an integer in the format string, it would compile and then return your string plus some unknown amount of junk.
llvm-svn: 170266
This commit is contained in:
@@ -876,7 +876,7 @@ protected:
|
||||
comp_unit->GetDirectory().GetCString(),
|
||||
comp_unit->GetFilename().GetCString());
|
||||
else
|
||||
result.AppendError ("no debug information for frame %u\n", frame->GetFrameIndex());
|
||||
result.AppendErrorWithFormat ("no debug information for frame %u\n", frame->GetFrameIndex());
|
||||
}
|
||||
else
|
||||
result.AppendError ("'target variable' takes one or more global variable names as arguments\n");
|
||||
@@ -3152,13 +3152,13 @@ protected:
|
||||
}
|
||||
else
|
||||
{
|
||||
result.AppendError ("Couldn't find module matching address: 0x%" PRIx64 ".", m_options.m_module_addr);
|
||||
result.AppendErrorWithFormat ("Couldn't find module matching address: 0x%" PRIx64 ".", m_options.m_module_addr);
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result.AppendError ("Couldn't find module containing address: 0x%" PRIx64 ".", m_options.m_module_addr);
|
||||
result.AppendErrorWithFormat ("Couldn't find module containing address: 0x%" PRIx64 ".", m_options.m_module_addr);
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user