summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-04 21:05:21 +0000
committerChris Lattner <sabre@nondot.org>2002-11-04 21:05:21 +0000
commitd8be7b01f9df25474f52d2388449b6e85818bde2 (patch)
tree60bea44f7ae1e68604b2b982a107fa8dc933c013 /llvm/lib/Support
parent9ac6ccd8aa0401517f22268047467e59a4289df4 (diff)
downloadbcm5719-llvm-d8be7b01f9df25474f52d2388449b6e85818bde2.tar.gz
bcm5719-llvm-d8be7b01f9df25474f52d2388449b6e85818bde2.zip
Sun can now use mallinfo()
llvm-svn: 4546
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Timer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index a214cf419ac..4de5baa51ad 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -76,13 +76,8 @@ static TimeRecord getTimeRecord() {
Result.UserTime = RU.ru_utime.tv_sec + RU.ru_utime.tv_usec/1000000.0;
Result.SystemTime = RU.ru_stime.tv_sec + RU.ru_stime.tv_usec/1000000.0;
-#ifndef __sparc__
struct mallinfo MI = mallinfo();
Result.MemUsed = MI.uordblks;
-#else
- Result.MemUsed = 0;
-#endif
-
return Result;
}
OpenPOWER on IntegriCloud