summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-08 20:15:57 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-08 20:15:57 +0000
commit1a26d15c8068f32c76035a431935804aad69d5f7 (patch)
treed4cea6f1c0310a42a9408bd4f84f819befcb3607 /llvm/lib/System
parent4588542d3907d609168f551b2fa1809616f65fe8 (diff)
downloadbcm5719-llvm-1a26d15c8068f32c76035a431935804aad69d5f7.tar.gz
bcm5719-llvm-1a26d15c8068f32c76035a431935804aad69d5f7.zip
Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows. llvm-svn: 19393
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Unix/Process.cpp4
-rw-r--r--llvm/lib/System/Win32/Process.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/System/Unix/Process.cpp b/llvm/lib/System/Unix/Process.cpp
index cccd3ffcb67..1c1373ebb5c 100644
--- a/llvm/lib/System/Unix/Process.cpp
+++ b/llvm/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/llvm/lib/System/Win32/Process.cpp b/llvm/lib/System/Win32/Process.cpp
index dc4664109de..392bac2e471 100644
--- a/llvm/lib/System/Win32/Process.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud