diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-09 22:54:08 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-09 22:54:17 -0800 |
| commit | d232abc33b707d2da8ca4e4c84d8287ce0e1a47a (patch) | |
| tree | ca130d9be74c7380624add1c5b06acaa8243e983 /lldb/source/API/SBFile.cpp | |
| parent | c4cdf865698eae06affbf762baf38e6ca95b4785 (diff) | |
[lldb] Remove LLDB_RECORD_RESULT macro
Diffstat (limited to 'lldb/source/API/SBFile.cpp')
| -rw-r--r-- | lldb/source/API/SBFile.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/API/SBFile.cpp b/lldb/source/API/SBFile.cpp index a6249dddd9a6..4fae46ea10cb 100644 --- a/lldb/source/API/SBFile.cpp +++ b/lldb/source/API/SBFile.cpp @@ -32,7 +32,7 @@ SBFile &SBFile ::operator=(const SBFile &rhs) { if (this != &rhs) m_opaque_sp = rhs.m_opaque_sp; - return LLDB_RECORD_RESULT(*this); + return *this; } SBFile::SBFile() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBFile); } @@ -69,7 +69,7 @@ SBError SBFile::Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read) { error.SetError(status); *bytes_read = num_bytes; } - return LLDB_RECORD_RESULT(error); + return error; } SBError SBFile::Write(const uint8_t *buf, size_t num_bytes, @@ -87,7 +87,7 @@ SBError SBFile::Write(const uint8_t *buf, size_t num_bytes, error.SetError(status); *bytes_written = num_bytes; } - return LLDB_RECORD_RESULT(error); + return error; } SBError SBFile::Flush() { @@ -100,7 +100,7 @@ SBError SBFile::Flush() { Status status = m_opaque_sp->Flush(); error.SetError(status); } - return LLDB_RECORD_RESULT(error); + return error; } bool SBFile::IsValid() const { @@ -115,7 +115,7 @@ SBError SBFile::Close() { Status status = m_opaque_sp->Close(); error.SetError(status); } - return LLDB_RECORD_RESULT(error); + return error; } SBFile::operator bool() const { @@ -130,5 +130,5 @@ bool SBFile::operator!() const { FileSP SBFile::GetFile() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(FileSP, SBFile, GetFile); - return LLDB_RECORD_RESULT(m_opaque_sp); + return m_opaque_sp; } |
