[llvm-commits] CVS: llvm/lib/Support/Timer.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 13 10:26:01 PST 2003


Changes in directory llvm/lib/Support:

Timer.cpp updated: 1.14 -> 1.15

---
Log message:

Make more compatible with GCC 2.96


---
Diffs of the changes:

Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.14 llvm/lib/Support/Timer.cpp:1.15
--- llvm/lib/Support/Timer.cpp:1.14	Wed Feb 12 23:07:53 2003
+++ llvm/lib/Support/Timer.cpp	Thu Feb 13 10:25:28 2003
@@ -215,10 +215,11 @@
       std::cerr << "===" << std::string(73, '-') << "===\n"
                 << std::string(Padding, ' ') << Name << "\n"
                 << "===" << std::string(73, '-')
-                << "===\n  Total Execution Time: " << std::fixed
-                << Total.getProcessTime()
-                << " seconds (" << Total.getWallTime() << std::scientific
-                << " wall clock)\n\n";
+                << "===\n  Total Execution Time: ";
+
+      // Hack for GCC 2.96... :( it doesn't support manipulators!
+      fprintf(stderr, "%.4f seconds (%.4f wall clock)\n\n",
+              Total.getProcessTime(), Total.getWallTime());
 
       if (Total.UserTime)
         std::cerr << "   ---User Time---";





More information about the llvm-commits mailing list