From a95078dc2451ee973b4aba30513d65b5bc1ed068 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Nov 2002 21:05:21 +0000 Subject: [PATCH] Sun can now use mallinfo() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4546 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Timer.cpp | 5 ----- support/lib/Support/Timer.cpp | 5 ----- 2 files changed, 10 deletions(-) diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index a214cf419ac..4de5baa51ad 100644 --- a/lib/Support/Timer.cpp +++ b/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; } diff --git a/support/lib/Support/Timer.cpp b/support/lib/Support/Timer.cpp index a214cf419ac..4de5baa51ad 100644 --- a/support/lib/Support/Timer.cpp +++ b/support/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; }