mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
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:
parent
fc1c70a8a4
commit
97a759249d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user