diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-08 20:15:57 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-08 20:15:57 +0000 |
commit | e269a1ac1cd795135e91e42527a9814f4807c75a (patch) | |
tree | f8630bf255a9d6feee23601bd82f592cb8614dcb /lib/System | |
parent | 9dacd128b4539b8100e97b973ec10cc36d712849 (diff) | |
download | external_llvm-e269a1ac1cd795135e91e42527a9814f4807c75a.zip external_llvm-e269a1ac1cd795135e91e42527a9814f4807c75a.tar.gz external_llvm-e269a1ac1cd795135e91e42527a9814f4807c75a.tar.bz2 |
Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r-- | lib/System/Unix/Process.cpp | 4 | ||||
-rw-r--r-- | lib/System/Unix/Process.inc | 4 | ||||
-rw-r--r-- | lib/System/Win32/Process.cpp | 4 | ||||
-rw-r--r-- | lib/System/Win32/Process.inc | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/System/Unix/Process.cpp b/lib/System/Unix/Process.cpp index cccd3ff..1c1373e 100644 --- a/lib/System/Unix/Process.cpp +++ b/lib/System/Unix/Process.cpp @@ -47,7 +47,7 @@ Process::GetPageSize() static char* som = reinterpret_cast<char*>(::sbrk(0)); #endif -uint64_t +size_t Process::GetMallocUsage() { #if defined(HAVE_MALLINFO) @@ -68,7 +68,7 @@ Process::GetMallocUsage() #endif } -uint64_t +size_t Process::GetTotalMemoryUsage() { #if defined(HAVE_MALLINFO) diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc index cccd3ff..1c1373e 100644 --- a/lib/System/Unix/Process.inc +++ b/lib/System/Unix/Process.inc @@ -47,7 +47,7 @@ Process::GetPageSize() static char* som = reinterpret_cast<char*>(::sbrk(0)); #endif -uint64_t +size_t Process::GetMallocUsage() { #if defined(HAVE_MALLINFO) @@ -68,7 +68,7 @@ Process::GetMallocUsage() #endif } -uint64_t +size_t Process::GetTotalMemoryUsage() { #if defined(HAVE_MALLINFO) diff --git a/lib/System/Win32/Process.cpp b/lib/System/Win32/Process.cpp index dc46641..392bac2 100644 --- a/lib/System/Win32/Process.cpp +++ b/lib/System/Win32/Process.cpp @@ -51,7 +51,7 @@ Process::GetPageSize() { return PageSize; } -uint64_t +size_t Process::GetMallocUsage() { _HEAPINFO hinfo; @@ -65,7 +65,7 @@ Process::GetMallocUsage() return size; } -uint64_t +size_t Process::GetTotalMemoryUsage() { PROCESS_MEMORY_COUNTERS pmc; diff --git a/lib/System/Win32/Process.inc b/lib/System/Win32/Process.inc index dc46641..392bac2 100644 --- a/lib/System/Win32/Process.inc +++ b/lib/System/Win32/Process.inc @@ -51,7 +51,7 @@ Process::GetPageSize() { return PageSize; } -uint64_t +size_t Process::GetMallocUsage() { _HEAPINFO hinfo; @@ -65,7 +65,7 @@ Process::GetMallocUsage() return size; } -uint64_t +size_t Process::GetTotalMemoryUsage() { PROCESS_MEMORY_COUNTERS pmc; |