Skip to content

Make SBFrame::GetLanguageSpecificData() const #117019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

adrian-prantl
Copy link
Collaborator

One last diff I missed between Swift and LLVM.

@llvmbot
Copy link
Member

llvmbot commented Nov 20, 2024

@llvm/pr-subscribers-lldb

Author: Adrian Prantl (adrian-prantl)

Changes

One last diff I missed between Swift and LLVM.


Full diff: https://github.com/llvm/llvm-project/pull/117019.diff

2 Files Affected:

  • (modified) lldb/include/lldb/API/SBFrame.h (+1-1)
  • (modified) lldb/source/API/SBFrame.cpp (+1-1)
diff --git a/lldb/include/lldb/API/SBFrame.h b/lldb/include/lldb/API/SBFrame.h
index 629d4e5bc61f46..3635ee5a537ad8 100644
--- a/lldb/include/lldb/API/SBFrame.h
+++ b/lldb/include/lldb/API/SBFrame.h
@@ -125,7 +125,7 @@ class LLDB_API SBFrame {
   /// 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 5c735dd35e1cf3..2300bec4d685d2 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;

@adrian-prantl adrian-prantl merged commit 6473a36 into llvm:main Nov 20, 2024
7 of 8 checks passed
adrian-prantl added a commit to adrian-prantl/llvm-project that referenced this pull request Nov 20, 2024
One last diff I missed between Swift and LLVM.

(cherry picked from commit 6473a36)
adrian-prantl added a commit to adrian-prantl/llvm-project that referenced this pull request Nov 21, 2024
One last diff I missed between Swift and LLVM.

(cherry picked from commit 6473a36)
(cherry picked from commit a3bdac9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants