[llvm-commits] [llvm] r150974 - /llvm/trunk/lib/Analysis/DebugInfo.cpp
Eric Christopher
echristo at apple.com
Mon Feb 20 10:04:35 PST 2012
Author: echristo
Date: Mon Feb 20 12:04:35 2012
New Revision: 150974
URL: http://llvm.org/viewvc/llvm-project?rev=150974&view=rev
Log:
If a derived type is also a composite type, print that information
too.
Modified:
llvm/trunk/lib/Analysis/DebugInfo.cpp
Modified: llvm/trunk/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DebugInfo.cpp?rev=150974&r1=150973&r2=150974&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Mon Feb 20 12:04:35 2012
@@ -721,8 +721,13 @@
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 {
More information about the llvm-commits
mailing list