aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/DebugInfo.h2
-rw-r--r--lib/Analysis/DebugInfo.cpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 6a0eb070c5..f398fe43e0 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -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.
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 5d1f7cba16..181f3e9eff 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -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.