[llvm-commits] CVS: llvm/lib/System/Unix/Process.cpp

Jeff Cohen jeffc at jolt-lang.org
Sat Jan 8 12:16:08 PST 2005



Changes in directory llvm/lib/System/Unix:

Process.cpp updated: 1.8 -> 1.9
---
Log message:

Use size_t instead of long to represent memory usage.  long is 32 bits
on 64-bit Windows.

---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/System/Unix/Process.cpp
diff -u llvm/lib/System/Unix/Process.cpp:1.8 llvm/lib/System/Unix/Process.cpp:1.9
--- llvm/lib/System/Unix/Process.cpp:1.8	Sat Jan  1 16:29:26 2005
+++ llvm/lib/System/Unix/Process.cpp	Sat Jan  8 14:15:57 2005
@@ -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)






More information about the llvm-commits mailing list