Skip to content

Commit efc5a6a

Browse files
committed
[clang][Interp][NFC] Print Block descriptor in ::dump()
1 parent 3655de7 commit efc5a6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/lib/AST/Interp/Disasm.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,11 @@ LLVM_DUMP_METHOD void Record::dump(llvm::raw_ostream &OS, unsigned Indentation,
325325
LLVM_DUMP_METHOD void Block::dump(llvm::raw_ostream &OS) const {
326326
{
327327
ColorScope SC(OS, true, {llvm::raw_ostream::BRIGHT_BLUE, true});
328-
OS << "Block " << (const void *)this << "\n";
328+
OS << "Block " << (const void *)this;
329329
}
330+
OS << " (";
331+
Desc->dump(OS);
332+
OS << ")\n";
330333
unsigned NPointers = 0;
331334
for (const Pointer *P = Pointers; P; P = P->Next) {
332335
++NPointers;

0 commit comments

Comments
 (0)