DebugInfo: When asm printing include a '[def]' tag for tag decls that are definitions...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 21 Jun 2013 03:41:54 +0000 (03:41 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 21 Jun 2013 03:41:54 +0000 (03:41 +0000)
This change is version locked with a change in Clang, so expect some
transient buildbot fallout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184525 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DebugInfo.cpp

index 24b061282d48decdc9a643c81f160a77c568279a..7c23a872e8fcd49050dbb0238a5b3bdfeb21fb9b 100644 (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())