Only print out the tag if it's there.

llvm-svn: 159328
This commit is contained in:
Bill Wendling 2012-06-28 02:17:58 +00:00
parent 74ac023cf6
commit a2ccbf0f85
1 changed files with 2 additions and 1 deletions

View File

@ -993,7 +993,8 @@ void DIDescriptor::dump() const {
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);