Add dump method to DIDescriptor.
authorBill Wendling <isanbard@gmail.com>
Tue, 5 May 2009 22:19:25 +0000 (22:19 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 5 May 2009 22:19:25 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71028 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h
lib/Analysis/DebugInfo.cpp

index 6a0eb070c5b73df29ecb7dd6113f271b90709f83..f398fe43e05b5ccae92a840c79837f762327d4be 100644 (file)
@@ -74,6 +74,8 @@ namespace llvm {
     /// 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.
index 5d1f7cba1618fd74f0454e13c95faa56668f0a7d..181f3e9eff19533ce8064af7f482b6a2d7708769 100644 (file)
@@ -981,6 +981,11 @@ namespace llvm {
   }
 }
 
+/// 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 @@ void DIType::dump() const {
 /// dump - print basic type.
 void DIBasicType::dump() const {
   cerr << " [" << dwarf::AttributeEncodingString(getEncoding()) << "] ";
-
 }
 
 /// dump - print derived type.