From 6473a36edc571cf0734a2e8d4354e332efb170e9 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 20 Nov 2024 10:07:23 -0800 Subject: [PATCH] Make SBFrame::GetLanguageSpecificData() const (#117019) One last diff I missed between Swift and LLVM. --- lldb/include/lldb/API/SBFrame.h | 2 +- lldb/source/API/SBFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/include/lldb/API/SBFrame.h b/lldb/include/lldb/API/SBFrame.h index 629d4e5bc61f..3635ee5a537a 100644 --- a/lldb/include/lldb/API/SBFrame.h +++ b/lldb/include/lldb/API/SBFrame.h @@ -125,7 +125,7 @@ public: /// Language plugins can use this API to report language-specific /// runtime information about this compile unit, such as additional /// language version details or feature flags. - SBStructuredData GetLanguageSpecificData(); + SBStructuredData GetLanguageSpecificData() const; /// Gets the lexical block that defines the stack frame. Another way to think /// of this is it will return the block that contains all of the variables diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index 5c735dd35e1c..2300bec4d685 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -1155,7 +1155,7 @@ lldb::SBValue SBFrame::EvaluateExpression(const char *expr, return expr_result; } -SBStructuredData SBFrame::GetLanguageSpecificData() { +SBStructuredData SBFrame::GetLanguageSpecificData() const { LLDB_INSTRUMENT_VA(this); SBStructuredData sb_data; -- 2.11.4.GIT