[llvm-commits] [llvm] r71028 - in /llvm/trunk: include/llvm/Analysis/DebugInfo.h lib/Analysis/DebugInfo.cpp

Bill Wendling isanbard at gmail.com
Tue May 5 15:19:26 PDT 2009


Author: void
Date: Tue May  5 17:19:25 2009
New Revision: 71028

URL: http://llvm.org/viewvc/llvm-project?rev=71028&view=rev
Log:
Add dump method to DIDescriptor.

Modified:
    llvm/trunk/include/llvm/Analysis/DebugInfo.h
    llvm/trunk/lib/Analysis/DebugInfo.cpp

Modified: llvm/trunk/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DebugInfo.h?rev=71028&r1=71027&r2=71028&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/DebugInfo.h Tue May  5 17:19:25 2009
@@ -74,6 +74,8 @@
     /// ValidDebugInfo - Return true if V represents valid debug info value.
     static bool ValidDebugInfo(Value *V, CodeGenOpt::Level OptLevel);
 
+    /// dump - print descriptor.
+    void dump() const;
   };
 
   /// DIAnchor - A wrapper for various anchor descriptors.

Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=71028&r1=71027&r2=71028&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Tue May  5 17:19:25 2009
@@ -981,6 +981,11 @@
   }
 }
 
+/// dump - print descriptor.
+void DIDescriptor::dump() const {
+  cerr << " [" << dwarf::TagString(getTag()) << "]\n";
+}
+
 /// dump - print compile unit.
 void DICompileUnit::dump() const {
   if (getLanguage())
@@ -1035,7 +1040,6 @@
 /// dump - print basic type.
 void DIBasicType::dump() const {
   cerr << " [" << dwarf::AttributeEncodingString(getEncoding()) << "] ";
-
 }
 
 /// dump - print derived type.





More information about the llvm-commits mailing list