Only print out the tag if it's there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-06-28 02:17:58 +00:00
parent fc1c70a8a4
commit 97a759249d

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);