Skip to content

Commit 7e04937

Browse files
committed
[clang][Interp][NFC] Improve InterpFrame::dump
1 parent f94df98 commit 7e04937

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

clang/lib/AST/Interp/Disasm.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,15 @@ LLVM_DUMP_METHOD void InterpFrame::dump(llvm::raw_ostream &OS,
278278
OS << "\n";
279279
OS.indent(Spaces) << "This: " << getThis() << "\n";
280280
OS.indent(Spaces) << "RVO: " << getRVOPtr() << "\n";
281-
282-
while (const InterpFrame *F = this->Caller) {
281+
OS.indent(Spaces) << "Depth: " << Depth << "\n";
282+
OS.indent(Spaces) << "ArgSize: " << ArgSize << "\n";
283+
OS.indent(Spaces) << "Args: " << (void *)Args << "\n";
284+
OS.indent(Spaces) << "FrameOffset: " << FrameOffset << "\n";
285+
OS.indent(Spaces) << "FrameSize: " << (Func ? Func->getFrameSize() : 0)
286+
<< "\n";
287+
288+
for (const InterpFrame *F = this->Caller; F; F = F->Caller) {
283289
F->dump(OS, Indent + 1);
284-
F = F->Caller;
285290
}
286291
}
287292

0 commit comments

Comments
 (0)