================ @@ -695,6 +695,21 @@ class CFGBlock { void dump() const { dumpToStream(llvm::errs()); } + + void Profile(llvm::FoldingSetNodeID &ID) const { + ID.AddPointer(Parent); + ID.AddInteger(Index); + } + + int64_t getID() const { ---------------- isuckatcs wrote:
Why do we want to print the ID in the first place? It probably doesn't hold a value to our users anyway. Either print a stament if there is any, or a source location, etc. The CFG is essentially the statements in the source file in execution order, so I imagine we always have a statement. https://github.com/llvm/llvm-project/pull/128251 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits