[llvm-branch-commits] [llvm-branch] r71136 - in /llvm/branches/Apple/Dib: include/llvm/Analysis/DebugInfo.h lib/Analysis/DebugInfo.cpp

Bill Wendling isanbard at gmail.com
Wed May 6 17:59:53 PDT 2009


Author: void
Date: Wed May  6 19:59:53 2009
New Revision: 71136

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

Modified:
    llvm/branches/Apple/Dib/include/llvm/Analysis/DebugInfo.h
    llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp

Modified: llvm/branches/Apple/Dib/include/llvm/Analysis/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/include/llvm/Analysis/DebugInfo.h?rev=71136&r1=71135&r2=71136&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/Analysis/DebugInfo.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/Analysis/DebugInfo.h Wed May  6 19:59:53 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/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp?rev=71136&r1=71135&r2=71136&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp Wed May  6 19:59:53 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-branch-commits mailing list