Add dump method for debugging.
authorBill Wendling <isanbard@gmail.com>
Fri, 9 Dec 2011 23:18:34 +0000 (23:18 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 9 Dec 2011 23:18:34 +0000 (23:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146293 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Metadata.h
lib/VMCore/AsmWriter.cpp

index 887e33c7a18180cd6f456509ea02e170f326cf7d..59b4b2619629ee9cd33bc378c11e442126435fa8 100644 (file)
@@ -225,6 +225,9 @@ public:
 
   /// print - Implement operator<< on NamedMDNode.
   void print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW = 0) const;
+
+  /// dump() - Allow printing of NamedMDNodes from the debugger.
+  void dump() const;
 };
 
 } // end llvm namespace
index d7863f5d326b52f995a1c0a40e33b7477dc031eb..4fb5fd3cb746ae8e387a3e9190c7b90b00311324 100644 (file)
@@ -2110,3 +2110,6 @@ void Type::dump() const { print(dbgs()); }
 
 // Module::dump() - Allow printing of Modules from the debugger.
 void Module::dump() const { print(dbgs(), 0); }
+
+// NamedMDNode::dump() - Allow printing of NamedMDNodes from the debugger.
+void NamedMDNode::dump() const { print(dbgs(), 0); }