diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-12-09 23:18:34 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-12-09 23:18:34 +0000 |
commit | f4374e46fd9f5267d650bbcd04b10c3df0f21177 (patch) | |
tree | 531e5f6f8a1c2930286cf6109089a971d8e2a2fc | |
parent | 262396b64462099a6641050a896eacf04aaf4c03 (diff) |
Add dump method for debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146293 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Metadata.h | 3 | ||||
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 887e33c7a1..59b4b26196 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -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 diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index d7863f5d32..4fb5fd3cb7 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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); } |