aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-02-20 18:04:35 +0000
committerEric Christopher <echristo@apple.com>2012-02-20 18:04:35 +0000
commitdc1eeb89f2a95d3918545976e8db778e3e109962 (patch)
treed8dae2c41aa8823cd0ec7661c57fbfb9cb83a135 /lib/Analysis
parent9f90e8760fda131db8311f976c6bbeb66abbaa05 (diff)
downloadexternal_llvm-dc1eeb89f2a95d3918545976e8db778e3e109962.zip
external_llvm-dc1eeb89f2a95d3918545976e8db778e3e109962.tar.gz
external_llvm-dc1eeb89f2a95d3918545976e8db778e3e109962.tar.bz2
If a derived type is also a composite type, print that information
too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DebugInfo.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 84b7899..c655c4e 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -721,8 +721,13 @@ void DIType::print(raw_ostream &OS) const {
if (isBasicType())
DIBasicType(DbgNode).print(OS);
- else if (isDerivedType())
- DIDerivedType(DbgNode).print(OS);
+ else if (isDerivedType()) {
+ DIDerivedType DTy = DIDerivedType(DbgNode);
+ DTy.print(OS);
+ DICompositeType CTy = getDICompositeType(DTy);
+ if (CTy.Verify())
+ CTy.print(OS);
+ }
else if (isCompositeType())
DICompositeType(DbgNode).print(OS);
else {