Rename Error -> Status.

This renames the LLDB error class to Status, as discussed
on the lldb-dev mailing list.

A change of this magnitude cannot easily be done without
find and replace, but that has potential to catch unwanted
occurrences of common strings such as "Error".  Every effort
was made to find all the obvious things such as the word "Error"
appearing in a string, etc, but it's possible there are still
some lingering occurences left around.  Hopefully nothing too
serious.

llvm-svn: 302872
This commit is contained in:
Zachary Turner
2017-05-12 04:51:55 +00:00
parent 3086b45a2f
commit 97206d5727
655 changed files with 5888 additions and 5773 deletions

View File

@@ -57,7 +57,7 @@ public:
valobj->GetAddressOf() +
JavaASTContext::CalculateArrayElementOffset(type, idx);
Error error;
Status error;
size_t byte_size = element_type.GetByteSize(nullptr);
DataBufferSP buffer_sp(new DataBufferHeap(byte_size, 0));
size_t bytes_read = process_sp->ReadMemory(address, buffer_sp->GetBytes(),
@@ -86,7 +86,7 @@ private:
if (!m_backend.IsPointerOrReferenceType())
return m_backend.GetSP();
Error error;
Status error;
return m_backend.Dereference(error);
}
};
@@ -96,7 +96,7 @@ private:
bool lldb_private::formatters::JavaStringSummaryProvider(
ValueObject &valobj, Stream &stream, const TypeSummaryOptions &opts) {
if (valobj.IsPointerOrReferenceType()) {
Error error;
Status error;
ValueObjectSP deref = valobj.Dereference(error);
if (error.Fail())
return false;
@@ -145,7 +145,7 @@ bool lldb_private::formatters::JavaStringSummaryProvider(
bool lldb_private::formatters::JavaArraySummaryProvider(
ValueObject &valobj, Stream &stream, const TypeSummaryOptions &options) {
if (valobj.IsPointerOrReferenceType()) {
Error error;
Status error;
ValueObjectSP deref = valobj.Dereference(error);
if (error.Fail())
return false;