[clang] [clang][bytecode] Print more info in Block::dump() (PR #133062)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 26 02:59:47 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/133062.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Disasm.cpp (+8)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Disasm.cpp b/clang/lib/AST/ByteCode/Disasm.cpp
index 85fc30482b003..12c434029562d 100644
--- a/clang/lib/AST/ByteCode/Disasm.cpp
+++ b/clang/lib/AST/ByteCode/Disasm.cpp
@@ -383,11 +383,19 @@ LLVM_DUMP_METHOD void Block::dump(llvm::raw_ostream &OS) const {
for (const Pointer *P = Pointers; P; P = P->Next) {
++NPointers;
}
+ OS << " EvalID: " << EvalID << '\n';
+ OS << " DeclID: ";
+ if (DeclID)
+ OS << *DeclID << '\n';
+ else
+ OS << "-\n";
OS << " Pointers: " << NPointers << "\n";
OS << " Dead: " << IsDead << "\n";
OS << " Static: " << IsStatic << "\n";
OS << " Extern: " << IsExtern << "\n";
OS << " Initialized: " << IsInitialized << "\n";
+ OS << " Weak: " << IsWeak << "\n";
+ OS << " Dynamic: " << IsDynamic << "\n";
}
LLVM_DUMP_METHOD void EvaluationResult::dump() const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/133062
More information about the cfe-commits
mailing list