[llvm-commits] [llvm] r150975 - /llvm/trunk/lib/Analysis/DebugInfo.cpp

Eric Christopher echristo at apple.com
Mon Feb 20 10:04:39 PST 2012


Author: echristo
Date: Mon Feb 20 12:04:39 2012
New Revision: 150975

URL: http://llvm.org/viewvc/llvm-project?rev=150975&view=rev
Log:
Make this a bit prettier and more obvious when a derived type isn't
derived from anything.

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=150975&r1=150974&r2=150975&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Mon Feb 20 12:04:39 2012
@@ -745,7 +745,9 @@
 
 /// print - Print derived type.
 void DIDerivedType::print(raw_ostream &OS) const {
-  OS << "\n\t Derived From: "; getTypeDerivedFrom().print(OS);
+  OS << "\n\t Derived From: ";
+  getTypeDerivedFrom().print(OS);
+  OS << "\n\t";
 }
 
 /// print - Print composite type.





More information about the llvm-commits mailing list