Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows.
llvm-svn: 19393
diff --git a/llvm/lib/System/Unix/Process.cpp b/llvm/lib/System/Unix/Process.cpp
index cccd3ff..1c1373e 100644
--- a/llvm/lib/System/Unix/Process.cpp
+++ b/llvm/lib/System/Unix/Process.cpp
@@ -47,7 +47,7 @@
static char* som = reinterpret_cast<char*>(::sbrk(0));
#endif
-uint64_t
+size_t
Process::GetMallocUsage()
{
#if defined(HAVE_MALLINFO)
@@ -68,7 +68,7 @@
#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 dc46641..392bac2 100644
--- a/llvm/lib/System/Win32/Process.cpp
+++ b/llvm/lib/System/Win32/Process.cpp
@@ -51,7 +51,7 @@
return PageSize;
}
-uint64_t
+size_t
Process::GetMallocUsage()
{
_HEAPINFO hinfo;
@@ -65,7 +65,7 @@
return size;
}
-uint64_t
+size_t
Process::GetTotalMemoryUsage()
{
PROCESS_MEMORY_COUNTERS pmc;