summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-23 18:21:13 +0000
committerOwen Anderson <resistor@mac.com>2009-06-23 18:21:13 +0000
commitddf74dc9861ec8788dc75c911340d59230a90672 (patch)
treec2d7cce3c817ecf2164c6d756d5fb45788c76811 /llvm/lib/Support/Timer.cpp
parent2d99f97c17a33f633b5035c3592d07ffde91fcf5 (diff)
downloadbcm5719-llvm-ddf74dc9861ec8788dc75c911340d59230a90672.tar.gz
bcm5719-llvm-ddf74dc9861ec8788dc75c911340d59230a90672.zip
Actually, these need to be signed integers, not unsigned.
llvm-svn: 73978
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index f4e97c4dc70..69f967c7389 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -112,7 +112,7 @@ static inline size_t getMemUsage() {
}
struct TimeRecord {
- uint64_t Elapsed, UserTime, SystemTime, MemUsed;
+ int64_t Elapsed, UserTime, SystemTime, MemUsed;
};
static TimeRecord getTimeRecord(bool Start) {
@@ -122,7 +122,7 @@ static TimeRecord getTimeRecord(bool Start) {
sys::TimeValue user(0,0);
sys::TimeValue sys(0,0);
- uint64_t MemUsed = 0;
+ int64_t MemUsed = 0;
if (Start) {
MemUsed = getMemUsage();
sys::Process::GetTimeUsage(now,user,sys);
OpenPOWER on IntegriCloud