[llvm-commits] [llvm] r146293 - in /llvm/trunk: include/llvm/Metadata.h lib/VMCore/AsmWriter.cpp

Bill Wendling isanbard at gmail.com
Fri Dec 9 15:18:34 PST 2011


Author: void
Date: Fri Dec  9 17:18:34 2011
New Revision: 146293

URL: http://llvm.org/viewvc/llvm-project?rev=146293&view=rev
Log:
Add dump method for debugging.

Modified:
    llvm/trunk/include/llvm/Metadata.h
    llvm/trunk/lib/VMCore/AsmWriter.cpp

Modified: llvm/trunk/include/llvm/Metadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Metadata.h?rev=146293&r1=146292&r2=146293&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Metadata.h (original)
+++ llvm/trunk/include/llvm/Metadata.h Fri Dec  9 17:18:34 2011
@@ -225,6 +225,9 @@
 
   /// 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

Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=146293&r1=146292&r2=146293&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Fri Dec  9 17:18:34 2011
@@ -2110,3 +2110,6 @@
 
 // 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); }





More information about the llvm-commits mailing list