summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBFunction.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-12-03 10:29:50 +0100
committerPavel Labath <pavel@labath.sk>2024-12-03 11:58:36 +0100
commit51b74bb9f6457cbe53776a2a35296189c5db52f3 (patch)
treeb23af1fb3a01bb364913a7e75ebf5b73c46ff631 /lldb/source/API/SBFunction.cpp
parent3f39c5df08d4ca1e7f852908e9fb255db24538da (diff)
Reapply "[lldb] Use the function block as a source for function ranges (#117996)"
This reverts commit 2526d5b1689389da9b194b5ec2878cfb2f4aca93, reapplying ba14dac481564000339ba22ab867617590184f4c after fixing the conflict with #117532. The change is that Function::GetAddressRanges now recomputes the returned value instead of returning the member. This means it now returns a value instead of a reference type.
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
-rw-r--r--lldb/source/API/SBFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp
index 2ef62eea4d19..3f6b4eea9831 100644
--- a/lldb/source/API/SBFunction.cpp
+++ b/lldb/source/API/SBFunction.cpp
@@ -154,7 +154,7 @@ SBAddress SBFunction::GetEndAddress() {
SBAddress addr;
if (m_opaque_ptr) {
- llvm::ArrayRef<AddressRange> ranges = m_opaque_ptr->GetAddressRanges();
+ AddressRanges ranges = m_opaque_ptr->GetAddressRanges();
if (!ranges.empty()) {
// Return the end of the first range, use GetRanges to get all ranges.
addr.SetAddress(ranges.front().GetBaseAddress());