[llvm-commits] [llvm] r159328 - /llvm/trunk/lib/VMCore/DebugInfo.cpp
Bill Wendling
isanbard at gmail.com
Wed Jun 27 19:17:58 PDT 2012
Author: void
Date: Wed Jun 27 21:17:58 2012
New Revision: 159328
URL: http://llvm.org/viewvc/llvm-project?rev=159328&view=rev
Log:
Only print out the tag if it's there.
Modified:
llvm/trunk/lib/VMCore/DebugInfo.cpp
Modified: llvm/trunk/lib/VMCore/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/DebugInfo.cpp?rev=159328&r1=159327&r2=159328&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/DebugInfo.cpp (original)
+++ llvm/trunk/lib/VMCore/DebugInfo.cpp Wed Jun 27 21:17:58 2012
@@ -993,7 +993,8 @@
void DIDescriptor::print(raw_ostream &OS) const {
if (!DbgNode) return;
- OS << "[" << dwarf::TagString(getTag()) << ']';
+ if (const char *Tag = dwarf::TagString(getTag()))
+ OS << "[ " << Tag << " ]";
if (this->isSubrange()) {
DISubrange(DbgNode).printInternal(OS);
More information about the llvm-commits
mailing list