diff options
author | Nick Kledzik <kledzik@apple.com> | 2008-05-09 18:44:41 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2008-05-09 18:44:41 +0000 |
commit | 81d7f9e62828b3a82d6a9d5f7b207e05d698d5f3 (patch) | |
tree | 1bcaba6d9a9864ca0ad67c807d3b69696f903a3c | |
parent | cb19a1cc5d427ddf35ea7df4b31d311a680c88b0 (diff) | |
download | external_llvm-81d7f9e62828b3a82d6a9d5f7b207e05d698d5f3.zip external_llvm-81d7f9e62828b3a82d6a9d5f7b207e05d698d5f3.tar.gz external_llvm-81d7f9e62828b3a82d6a9d5f7b207e05d698d5f3.tar.bz2 |
use doxygen comments for makeBuffer()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/lto2/LTOModule.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lto2/LTOModule.cpp b/tools/lto2/LTOModule.cpp index 943bef7..cc3b1f1 100644 --- a/tools/lto2/LTOModule.cpp +++ b/tools/lto2/LTOModule.cpp @@ -91,12 +91,12 @@ LTOModule* LTOModule::makeLTOModule(const char* path, std::string& errMsg) return makeLTOModule(buffer.get(), errMsg); } - +/// makeBuffer - create a MemoryBuffer from a memory range. +/// MemoryBuffer requires the byte past end of the buffer to be a zero. +/// We might get lucky and already be that way, otherwise make a copy. +/// Also if next byte is on a different page, don't assume it is readable. MemoryBuffer* LTOModule::makeBuffer(const void* mem, size_t length) { - // MemoryBuffer requires the byte past end of the buffer to be a zero. - // We might get lucky and already be that way, otherwise make a copy. - // Also if next byte is on a different page, don't assume it is readable. const char* startPtr = (char*)mem; const char* endPtr = startPtr+length; if ( (((uintptr_t)endPtr & (sys::Process::GetPageSize()-1)) == 0) |