Author: Timm Bäder Date: 2024-07-26T16:09:02+02:00 New Revision: 7e049373f4d26780f558f798b403a8477dd6af08
URL: https://github.com/llvm/llvm-project/commit/7e049373f4d26780f558f798b403a8477dd6af08 DIFF: https://github.com/llvm/llvm-project/commit/7e049373f4d26780f558f798b403a8477dd6af08.diff LOG: [clang][Interp][NFC] Improve InterpFrame::dump Added: Modified: clang/lib/AST/Interp/Disasm.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/Disasm.cpp b/clang/lib/AST/Interp/Disasm.cpp index 867284ecf7f4b..5e3a5b9515b52 100644 --- a/clang/lib/AST/Interp/Disasm.cpp +++ b/clang/lib/AST/Interp/Disasm.cpp @@ -278,10 +278,15 @@ LLVM_DUMP_METHOD void InterpFrame::dump(llvm::raw_ostream &OS, OS << "\n"; OS.indent(Spaces) << "This: " << getThis() << "\n"; OS.indent(Spaces) << "RVO: " << getRVOPtr() << "\n"; - - while (const InterpFrame *F = this->Caller) { + OS.indent(Spaces) << "Depth: " << Depth << "\n"; + OS.indent(Spaces) << "ArgSize: " << ArgSize << "\n"; + OS.indent(Spaces) << "Args: " << (void *)Args << "\n"; + OS.indent(Spaces) << "FrameOffset: " << FrameOffset << "\n"; + OS.indent(Spaces) << "FrameSize: " << (Func ? Func->getFrameSize() : 0) + << "\n"; + + for (const InterpFrame *F = this->Caller; F; F = F->Caller) { F->dump(OS, Indent + 1); - F = F->Caller; } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits