summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-21 03:41:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-21 03:41:54 +0000
commit512b3f22bb9c5d9d41e10faa7109a4853aaff538 (patch)
treea9eaa9646b8d189c8bd0165093b5abd1fe86312f
parent03039fe9ba289d5f0b364760616f1ed54b3b8f83 (diff)
downloadbcm5719-llvm-512b3f22bb9c5d9d41e10faa7109a4853aaff538.tar.gz
bcm5719-llvm-512b3f22bb9c5d9d41e10faa7109a4853aaff538.zip
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
-rw-r--r--llvm/lib/IR/DebugInfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 24b061282d4..7c23a872e8f 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud