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

Dan Gohman gohman at apple.com
Fri May 7 09:17:22 PDT 2010


Author: djg
Date: Fri May  7 11:17:22 2010
New Revision: 103261

URL: http://llvm.org/viewvc/llvm-project?rev=103261&view=rev
Log:
Fix the new print functions to call print instead of dump.

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=103261&r1=103260&r2=103261&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/DebugInfo.cpp Fri May  7 11:17:22 2010
@@ -501,7 +501,7 @@
   OS << " [" << dwarf::TagString(Tag) << "] ";
 
   // TODO : Print context
-  getCompileUnit().dump();
+  getCompileUnit().print(OS);
   OS << " ["
          << getLineNumber() << ", "
          << getSizeInBits() << ", "
@@ -518,11 +518,11 @@
     OS << " [fwd] ";
 
   if (isBasicType())
-    DIBasicType(DbgNode).dump();
+    DIBasicType(DbgNode).print(OS);
   else if (isDerivedType())
-    DIDerivedType(DbgNode).dump();
+    DIDerivedType(DbgNode).print(OS);
   else if (isCompositeType())
-    DICompositeType(DbgNode).dump();
+    DICompositeType(DbgNode).print(OS);
   else {
     OS << "Invalid DIType\n";
     return;
@@ -538,7 +538,7 @@
 
 /// print - Print derived type.
 void DIDerivedType::print(raw_ostream &OS) const {
-  OS << "\n\t Derived From: "; getTypeDerivedFrom().dump();
+  OS << "\n\t Derived From: "; getTypeDerivedFrom().print(OS);
 }
 
 /// print - Print composite type.
@@ -557,7 +557,7 @@
   OS << " [" << dwarf::TagString(Tag) << "] ";
 
   // TODO : Print context
-  getCompileUnit().dump();
+  getCompileUnit().print(OS);
   OS << " [" << getLineNumber() << "] ";
 
   if (isLocalToUnit())
@@ -567,7 +567,7 @@
     OS << " [def] ";
 
   if (isGlobalVariable())
-    DIGlobalVariable(DbgNode).dump();
+    DIGlobalVariable(DbgNode).print(OS);
 
   OS << "\n";
 }
@@ -582,7 +582,7 @@
   OS << " [" << dwarf::TagString(Tag) << "] ";
 
   // TODO : Print context
-  getCompileUnit().dump();
+  getCompileUnit().print(OS);
   OS << " [" << getLineNumber() << "] ";
 
   if (isLocalToUnit())
@@ -597,7 +597,7 @@
 /// print - Print global variable.
 void DIGlobalVariable::print(raw_ostream &OS) const {
   OS << " [";
-  getGlobal()->dump();
+  getGlobal()->print(OS);
   OS << "] ";
 }
 
@@ -607,9 +607,9 @@
   if (!Res.empty())
     OS << " [" << Res << "] ";
 
-  getCompileUnit().dump();
+  getCompileUnit().print(OS);
   OS << " [" << getLineNumber() << "] ";
-  getType().dump();
+  getType().print(OS);
   OS << "\n";
 
   // FIXME: Dump complex addresses





More information about the llvm-commits mailing list