[clang] efc5a6a - [clang][Interp][NFC] Print Block descriptor in ::dump()
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 01:00:19 PDT 2024
Author: Timm Bäder
Date: 2024-07-09T09:59:52+02:00
New Revision: efc5a6aa82081aaa002f90baa21fc16655af0729
URL: https://github.com/llvm/llvm-project/commit/efc5a6aa82081aaa002f90baa21fc16655af0729
DIFF: https://github.com/llvm/llvm-project/commit/efc5a6aa82081aaa002f90baa21fc16655af0729.diff
LOG: [clang][Interp][NFC] Print Block descriptor in ::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 d946a10c22dc3..c6c6275593007 100644
--- a/clang/lib/AST/Interp/Disasm.cpp
+++ b/clang/lib/AST/Interp/Disasm.cpp
@@ -325,8 +325,11 @@ LLVM_DUMP_METHOD void Record::dump(llvm::raw_ostream &OS, unsigned Indentation,
LLVM_DUMP_METHOD void Block::dump(llvm::raw_ostream &OS) const {
{
ColorScope SC(OS, true, {llvm::raw_ostream::BRIGHT_BLUE, true});
- OS << "Block " << (const void *)this << "\n";
+ OS << "Block " << (const void *)this;
}
+ OS << " (";
+ Desc->dump(OS);
+ OS << ")\n";
unsigned NPointers = 0;
for (const Pointer *P = Pointers; P; P = P->Next) {
++NPointers;
More information about the cfe-commits
mailing list