Add dump method for debugging.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2011-12-09 23:18:34 +00:00
parent 262396b644
commit f4374e46fd
2 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,9 @@ public:
/// print - Implement operator<< on NamedMDNode.
void print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW = 0) const;
/// dump() - Allow printing of NamedMDNodes from the debugger.
void dump() const;
};
} // end llvm namespace

View File

@ -2110,3 +2110,6 @@ void Type::dump() const { print(dbgs()); }
// Module::dump() - Allow printing of Modules from the debugger.
void Module::dump() const { print(dbgs(), 0); }
// NamedMDNode::dump() - Allow printing of NamedMDNodes from the debugger.
void NamedMDNode::dump() const { print(dbgs(), 0); }