summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBFunction.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-01-09 22:54:08 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2022-01-09 22:54:17 -0800
commitd232abc33b707d2da8ca4e4c84d8287ce0e1a47a (patch)
treeca130d9be74c7380624add1c5b06acaa8243e983 /lldb/source/API/SBFunction.cpp
parentc4cdf865698eae06affbf762baf38e6ca95b4785 (diff)
[lldb] Remove LLDB_RECORD_RESULT macro
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
-rw-r--r--lldb/source/API/SBFunction.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp
index a682cdce491a..2b1bc05e3356 100644
--- a/lldb/source/API/SBFunction.cpp
+++ b/lldb/source/API/SBFunction.cpp
@@ -37,7 +37,7 @@ const SBFunction &SBFunction::operator=(const SBFunction &rhs) {
SBFunction, operator=,(const lldb::SBFunction &), rhs);
m_opaque_ptr = rhs.m_opaque_ptr;
- return LLDB_RECORD_RESULT(*this);
+ return *this;
}
SBFunction::~SBFunction() { m_opaque_ptr = nullptr; }
@@ -114,7 +114,7 @@ SBInstructionList SBFunction::GetInstructions(SBTarget target) {
LLDB_RECORD_METHOD(lldb::SBInstructionList, SBFunction, GetInstructions,
(lldb::SBTarget), target);
- return LLDB_RECORD_RESULT(GetInstructions(target, nullptr));
+ return GetInstructions(target, nullptr);
}
SBInstructionList SBFunction::GetInstructions(SBTarget target,
@@ -136,7 +136,7 @@ SBInstructionList SBFunction::GetInstructions(SBTarget target,
m_opaque_ptr->GetAddressRange(), force_live_memory));
}
}
- return LLDB_RECORD_RESULT(sb_instructions);
+ return sb_instructions;
}
lldb_private::Function *SBFunction::get() { return m_opaque_ptr; }
@@ -151,7 +151,7 @@ SBAddress SBFunction::GetStartAddress() {
SBAddress addr;
if (m_opaque_ptr)
addr.SetAddress(m_opaque_ptr->GetAddressRange().GetBaseAddress());
- return LLDB_RECORD_RESULT(addr);
+ return addr;
}
SBAddress SBFunction::GetEndAddress() {
@@ -165,7 +165,7 @@ SBAddress SBFunction::GetEndAddress() {
addr->Slide(byte_size);
}
}
- return LLDB_RECORD_RESULT(addr);
+ return addr;
}
const char *SBFunction::GetArgumentName(uint32_t arg_idx) {
@@ -204,7 +204,7 @@ SBType SBFunction::GetType() {
if (function_type)
sb_type.ref().SetType(function_type->shared_from_this());
}
- return LLDB_RECORD_RESULT(sb_type);
+ return sb_type;
}
SBBlock SBFunction::GetBlock() {
@@ -213,7 +213,7 @@ SBBlock SBFunction::GetBlock() {
SBBlock sb_block;
if (m_opaque_ptr)
sb_block.SetPtr(&m_opaque_ptr->GetBlock(true));
- return LLDB_RECORD_RESULT(sb_block);
+ return sb_block;
}
lldb::LanguageType SBFunction::GetLanguage() {