[clang] 7e04937 - [clang][Interp][NFC] Improve InterpFrame::dump
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 26 07:09:58 PDT 2024
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;
}
}
More information about the cfe-commits
mailing list