use doxygen comments for makeBuffer()
authorNick Kledzik <kledzik@apple.com>
Fri, 9 May 2008 18:44:41 +0000 (18:44 +0000)
committerNick Kledzik <kledzik@apple.com>
Fri, 9 May 2008 18:44:41 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50908 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto2/LTOModule.cpp

index 943bef75c8725b289b215f0fc84183e2fd0fe014..cc3b1f142dc02351675003216c0e1f8edab639ce 100644 (file)
@@ -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)