[PATCH] D110113: [IR]PATCH 2/2: Add MDNode::printTree and dumpTree

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 13:53:13 PDT 2021


aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/include/llvm/IR/Metadata.h:1042
+  /// otherwise, pointer addresses are substituted.
+  /// @{
+  void printTree(raw_ostream &OS, const Module *M = nullptr) const;
----------------
Nit, I think this can be `\{`. Looks more TeXy.


================
Comment at: llvm/lib/IR/AsmWriter.cpp:4681
 
+// Recursive version of printMetadataImpl.
+static void printMetadataImplRec(raw_ostream &ROS, const Metadata &MD,
----------------
///


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110113/new/

https://reviews.llvm.org/D110113



More information about the llvm-commits mailing list