Many of Daniel's fixes.
authorSean Callanan <scallanan@apple.com>
Mon, 27 Jul 2009 18:33:24 +0000 (18:33 +0000)
committerSean Callanan <scallanan@apple.com>
Mon, 27 Jul 2009 18:33:24 +0000 (18:33 +0000)
commit5908cfedbb44d7f2e09c99392a06b1d1138c8c9f
tree857f27383924aed6b4027c34c0f6900684b9b36c
parent4d37791bc33827321b4877382f15a5ddf61eb709
Many of Daniel's fixes.

I'm returning the number of bytes actually copied so that the client has some
warning when it reads past the end of the buffer.

I'm keeping the distinction between getByte() and getBytes() for now for
subclasses that use functions like ptrace() on Linux and only have a restricted
interface.  This makes their implementation easier, and subclasses can always
write a one-line implementation of readByte() that uses their custom
readBytes().

llvm-svn: 77225
llvm/include/llvm/Support/MemoryObject.h