Add dump method to DIDescriptor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71028 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 6a0eb07..f398fe4 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -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.
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 5d1f7cb..181f3e9 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -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.