From a95078dc2451ee973b4aba30513d65b5bc1ed068 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Nov 2002 21:05:21 +0000 Subject: 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 ----- 1 file changed, 5 deletions(-) (limited to 'lib/Support/Timer.cpp') diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index a214cf419a..4de5baa51a 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; } -- cgit v1.2.3