diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-13 16:25:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-13 16:25:28 +0000 |
commit | 4e6fad05a677cce4e286209be46cb043f18da7ac (patch) | |
tree | 85d06f3b6ece21224306bb47ea772716302119d0 /llvm/lib | |
parent | a6b38bd7f5bf5b6e779db54f469a46f340bc2104 (diff) | |
download | bcm5719-llvm-4e6fad05a677cce4e286209be46cb043f18da7ac.tar.gz bcm5719-llvm-4e6fad05a677cce4e286209be46cb043f18da7ac.zip |
Make more compatible with GCC 2.96
llvm-svn: 5550
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Timer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index e03c3121d94..62876539ff2 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -215,10 +215,11 @@ void TimerGroup::removeTimer() { 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---"; |