[clang] [clang][bytecode][NFC] Add InterpFrame::getName() (PR #181158)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 12 06:52:23 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/181158.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/InterpFrame.h (+6)
``````````diff
diff --git a/clang/lib/AST/ByteCode/InterpFrame.h b/clang/lib/AST/ByteCode/InterpFrame.h
index 61c1065e5848a..0879260695d3e 100644
--- a/clang/lib/AST/ByteCode/InterpFrame.h
+++ b/clang/lib/AST/ByteCode/InterpFrame.h
@@ -46,6 +46,12 @@ class InterpFrame final : public Frame {
/// Destroys the frame, killing all live pointers to stack slots.
~InterpFrame();
+ std::string getName() const {
+ if (!Func)
+ return "Bottom frame";
+ return Func->getName();
+ }
+
static void free(InterpFrame *F) {
if (!F->isBottomFrame())
delete F;
``````````
</details>
https://github.com/llvm/llvm-project/pull/181158
More information about the cfe-commits
mailing list