diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-06-28 02:17:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-06-28 02:17:58 +0000 |
commit | 97a759249d6be2ad4f64b40f6bc14b0c3e77ef32 (patch) | |
tree | a90b73892b6ee754a5a5f9bfc28888b7960bf988 /lib/VMCore | |
parent | fc1c70a8a4f8bc7f4e51ece5b383966d602d89b7 (diff) | |
download | external_llvm-97a759249d6be2ad4f64b40f6bc14b0c3e77ef32.zip external_llvm-97a759249d6be2ad4f64b40f6bc14b0c3e77ef32.tar.gz external_llvm-97a759249d6be2ad4f64b40f6bc14b0c3e77ef32.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/DebugInfo.cpp b/lib/VMCore/DebugInfo.cpp index 4697fde..e56ab0f 100644 --- a/lib/VMCore/DebugInfo.cpp +++ b/lib/VMCore/DebugInfo.cpp @@ -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); |