diff options
| author | Eli Bendersky <eliben@google.com> | 2013-07-23 21:05:21 +0000 |
|---|---|---|
| committer | Eli Bendersky <eliben@google.com> | 2013-07-23 21:05:21 +0000 |
| commit | 43ef8ed5f55c6e75ca0e19eb13d37a611af39979 (patch) | |
| tree | afb6fb24ee3eacb32b8aaa1ad8eeecb1ae31bbd4 /llvm | |
| parent | bb506fce27bf8e3bf96233cb130203b8430234d2 (diff) | |
| download | bcm5719-llvm-43ef8ed5f55c6e75ca0e19eb13d37a611af39979.tar.gz bcm5719-llvm-43ef8ed5f55c6e75ca0e19eb13d37a611af39979.zip | |
Expand the comment on getOpenFileSlice a bit for more details and consistency
llvm-svn: 186987
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/MemoryBuffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/MemoryBuffer.h b/llvm/include/llvm/Support/MemoryBuffer.h index 9609e3366d4..4f28da4094c 100644 --- a/llvm/include/llvm/Support/MemoryBuffer.h +++ b/llvm/include/llvm/Support/MemoryBuffer.h @@ -74,8 +74,9 @@ public: int64_t FileSize = -1, bool RequiresNullTerminator = true); - // Get a MemoryBuffer of part of a file. Since this is in the middle of a - // file, the buffer is not null terminated. + /// Given an already-open file descriptor, map some slice of it into a + /// MemoryBuffer. The slice is specified by an \p Offset and \p MapSize. + /// Since this is in the middle of a file, the buffer is not null terminated. static error_code getOpenFileSlice(int FD, const char *Filename, OwningPtr<MemoryBuffer> &Result, uint64_t MapSize, int64_t Offset); |

