projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement cast fp -> bool
[oota-llvm.git]
/
lib
/
Support
/
Timer.cpp
diff --git
a/lib/Support/Timer.cpp
b/lib/Support/Timer.cpp
index d14a225fcf26c7aba4e1743b4e79e945cdc04495..5d493b8a15e2e329b073362fea01235e384468b3 100644
(file)
--- a/
lib/Support/Timer.cpp
+++ b/
lib/Support/Timer.cpp
@@
-22,8
+22,10
@@
#include <functional>
#include <fstream>
#include <map>
#include <functional>
#include <fstream>
#include <map>
+using namespace llvm;
-namespace llvm {
+// GetLibSupportInfoOutputFile - Return a file stream to print our output on...
+namespace llvm { extern std::ostream *GetLibSupportInfoOutputFile(); }
// getLibSupportInfoOutputFilename - This ugly hack is brought to you courtesy
// of constructor/destructor ordering being unspecified by C++. Basically the
// getLibSupportInfoOutputFilename - This ugly hack is brought to you courtesy
// of constructor/destructor ordering being unspecified by C++. Basically the
@@
-122,9
+124,9
@@
static TimeRecord getTimeRecord(bool Start) {
gettimeofday(&T, 0);
if (!Start) {
gettimeofday(&T, 0);
if (!Start) {
- MemUsed = getMemUsage();
if (getrusage(RUSAGE_SELF, &RU))
perror("getrusage call failed: -time-passes info incorrect!");
if (getrusage(RUSAGE_SELF, &RU))
perror("getrusage call failed: -time-passes info incorrect!");
+ MemUsed = getMemUsage();
}
TimeRecord Result;
}
TimeRecord Result;
@@
-268,7
+270,7
@@
void Timer::print(const Timer &Total, std::ostream &OS) {
// GetLibSupportInfoOutputFile - Return a file stream to print our output on...
std::ostream *
// GetLibSupportInfoOutputFile - Return a file stream to print our output on...
std::ostream *
-GetLibSupportInfoOutputFile() {
+
llvm::
GetLibSupportInfoOutputFile() {
std::string &LibSupportInfoOutputFilename = getLibSupportInfoOutputFilename();
if (LibSupportInfoOutputFilename.empty())
return &std::cerr;
std::string &LibSupportInfoOutputFilename = getLibSupportInfoOutputFilename();
if (LibSupportInfoOutputFilename.empty())
return &std::cerr;
@@
-353,4
+355,3
@@
void TimerGroup::removeTimer() {
}
}
}
}
-} // End llvm namespace