1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Add dump method to DIDescriptor.

llvm-svn: 71028
This commit is contained in:
Bill Wendling 2009-05-05 22:19:25 +00:00
parent 6d1ffab07b
commit 265f9ffc43
2 changed files with 7 additions and 1 deletions

View 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.

View 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.