Skip to content

Commit 6ff3906

Browse files
authored
[clang][bytecode] Print more info in Block::dump() (#133062)
1 parent 38ad0df commit 6ff3906

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/lib/AST/ByteCode/Disasm.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,19 @@ LLVM_DUMP_METHOD void Block::dump(llvm::raw_ostream &OS) const {
383383
for (const Pointer *P = Pointers; P; P = P->Next) {
384384
++NPointers;
385385
}
386+
OS << " EvalID: " << EvalID << '\n';
387+
OS << " DeclID: ";
388+
if (DeclID)
389+
OS << *DeclID << '\n';
390+
else
391+
OS << "-\n";
386392
OS << " Pointers: " << NPointers << "\n";
387393
OS << " Dead: " << IsDead << "\n";
388394
OS << " Static: " << IsStatic << "\n";
389395
OS << " Extern: " << IsExtern << "\n";
390396
OS << " Initialized: " << IsInitialized << "\n";
397+
OS << " Weak: " << IsWeak << "\n";
398+
OS << " Dynamic: " << IsDynamic << "\n";
391399
}
392400

393401
LLVM_DUMP_METHOD void EvaluationResult::dump() const {

0 commit comments

Comments
 (0)