[llvm-commits] [llvm] r53268 - /llvm/trunk/lib/VMCore/PassManager.cpp

Dan Gohman gohman at apple.com
Tue Jul 8 17:50:40 PDT 2008


Author: djg
Date: Tue Jul  8 19:50:40 2008
New Revision: 53268

URL: http://llvm.org/viewvc/llvm-project?rev=53268&view=rev
Log:
Consistently put quotes around pass names in debugging output.

Modified:
    llvm/trunk/lib/VMCore/PassManager.cpp

Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=53268&r1=53267&r2=53268&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Tue Jul  8 19:50:40 2008
@@ -628,7 +628,7 @@
   OtherDT.getBase().recalculate(F);
   if (DT->compare(OtherDT)) {
     cerr << "Dominator Information for " << F.getNameStart() << "\n";
-    cerr << "Pass " << P.getPassName() << "\n";
+    cerr << "Pass '" << P.getPassName() << "'\n";
     cerr << "----- Valid -----\n";
     OtherDT.dump();
     cerr << "----- Invalid -----\n";
@@ -645,7 +645,7 @@
   OtherDF.calculate(*DT, DT->getNode(DTRoots[0]));
   if (DF->compare(OtherDF)) {
     cerr << "Dominator Information for " << F.getNameStart() << "\n";
-    cerr << "Pass " << P.getPassName() << "\n";
+    cerr << "Pass '" << P.getPassName() << "'\n";
     cerr << "----- Valid -----\n";
     OtherDF.dump();
     cerr << "----- Invalid -----\n";
@@ -672,8 +672,8 @@
       AvailableAnalysis.erase(Info);
       if (PassDebugging >= Details) {
         Pass *S = Info->second;
-        cerr << " -- " <<  P->getPassName() << " is not preserving ";
-        cerr << S->getPassName() << "\n";
+        cerr << " -- '" <<  P->getPassName() << "' is not preserving '";
+        cerr << S->getPassName() << "'\n";
       }
     }
   }
@@ -711,8 +711,8 @@
   TPM->collectLastUses(DeadPasses, P);
 
   if (PassDebugging >= Details && !DeadPasses.empty()) {
-    cerr << " -*- " <<  P->getPassName();
-    cerr << " is the last user of following pass instances.";
+    cerr << " -*- '" <<  P->getPassName();
+    cerr << "' is the last user of following pass instances.";
     cerr << " Free these instances\n";
   }
 
@@ -984,8 +984,8 @@
   // checks whether any lower level manager will be able to provide this 
   // analysis info on demand or not.
 #ifndef NDEBUG
-  cerr << "Unable to schedule " << RequiredPass->getPassName();
-  cerr << " required by " << P->getPassName() << "\n";
+  cerr << "Unable to schedule '" << RequiredPass->getPassName();
+  cerr << "' required by '" << P->getPassName() << "'\n";
 #endif
   assert (0 && "Unable to schedule pass");
 }





More information about the llvm-commits mailing list