diff options
author | Eric Christopher <echristo@apple.com> | 2012-02-20 18:04:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-02-20 18:04:35 +0000 |
commit | dc1eeb89f2a95d3918545976e8db778e3e109962 (patch) | |
tree | d8dae2c41aa8823cd0ec7661c57fbfb9cb83a135 /lib/Analysis/DebugInfo.cpp | |
parent | 9f90e8760fda131db8311f976c6bbeb66abbaa05 (diff) |
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/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 84b789959c..c655c4eabd 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 { |