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)
commite91ea06dff293e7fe001329efebcdb33a6d105da
tree537358e8a0727bca90fd9bb91b21c4876f6f2489
parent293f8d9b8800ab68c64b67f38a7f76e00126715d
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().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77225 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MemoryObject.h