diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-21 03:41:54 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-21 03:41:54 +0000 |
commit | e954d98394c257b98b24e7ad43d4f5d1bffe09b1 (patch) | |
tree | c5d033741a8a56e3e120c891fb10a79bd389335b | |
parent | 47afd0b77a2963d2991aef4570b4f2338b816b90 (diff) | |
download | external_llvm-e954d98394c257b98b24e7ad43d4f5d1bffe09b1.zip external_llvm-e954d98394c257b98b24e7ad43d4f5d1bffe09b1.tar.gz external_llvm-e954d98394c257b98b24e7ad43d4f5d1bffe09b1.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184525 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/IR/DebugInfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 24b0612..7c23a87 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -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()) |