DebugInfo: When asm printing include a '[def]' tag for tag decls that are definitions (& rename the 'fwd' tag to 'decl' for clarity)

This change is version locked with a change in Clang, so expect some
transient buildbot fallout.

llvm-svn: 184525
This commit is contained in:
David Blaikie 2013-06-21 03:41:54 +00:00
parent 03039fe9ba
commit 512b3f22bb
1 changed files with 6 additions and 1 deletions

View File

@ -1120,7 +1120,12 @@ void DIType::printInternal(raw_ostream &OS) const {
OS << " [artificial]";
if (isForwardDecl())
OS << " [fwd]";
OS << " [decl]";
else if (getTag() == dwarf::DW_TAG_structure_type ||
getTag() == dwarf::DW_TAG_union_type ||
getTag() == dwarf::DW_TAG_enumeration_type ||
getTag() == dwarf::DW_TAG_class_type)
OS << " [def]";
if (isVector())
OS << " [vector]";
if (isStaticMember())