aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)AuthorFilesLines
2014-12-12Pass EC by reference to MemoryBufferMMapFile to return error code.Yaron Keren1-1/+1
2014-12-11Remove a convoluted way of calling close by moving the call to the only caller.Rafael Espindola1-1/+1
2014-12-04Remove dead code. NFC.Rafael Espindola1-1/+1
2014-10-08[Support] Add MemoryBuffer::getFileSlice()Nick Kledzik1-8/+15
2014-10-07Remove the IsVolatileSize parameter of getOpenFileSlice.Rafael Espindola1-2/+3
2014-10-07Be consistent about using "const Twine &" for filenames.Rafael Espindola1-22/+27
2014-08-27Return a std::unique_ptr when creating a new MemoryBuffer.Rafael Espindola1-34/+27
2014-08-26Pass a MemoryBufferRef when we can avoid taking ownership.Rafael Espindola1-0/+6
2014-08-19Don't own the buffer in object::Binary.Rafael Espindola1-0/+6
2014-08-09Fix typo.Eric Christopher1-1/+1
2014-08-08Reword comment slightly.Eric Christopher1-4/+3
2014-08-06getNewMemBuffer memsets the buffer to zeros,Yaron Keren1-1/+1
2014-08-04MemoryBuffer: Don't use mmap when FileSize is multiple of 4k on Cygwin.NAKAMURA Takumi1-0/+8
2014-07-06Update the MemoryBuffer API to use ErrorOr.Rafael Espindola1-69/+48
2014-06-13Finishing touch for the std::error_code transition.Rafael Espindola1-1/+2
2014-06-13Fix build on windows.Rafael Espindola1-1/+1
2014-06-13Remove 'using std::errro_code' from lib.Rafael Espindola1-53/+54
2014-06-12Don't use 'using std::error_code' in include/llvm.Rafael Espindola1-0/+1
2014-06-12Remove system_error.h.Rafael Espindola1-1/+1
2014-06-12Don't import make_error_code into the llvm namespace.Rafael Espindola1-1/+1
2014-06-12Don't put generic_category in the llvm namespace.Rafael Espindola1-3/+3
2014-06-11Use std::error_code instead of llvm::error_code.Rafael Espindola1-1/+1
2014-06-11There is no posix_category in std, use generic_category.Rafael Espindola1-3/+3
2014-05-31Use error_code() instead of error_code::succes()Rafael Espindola1-3/+3
2014-05-19MemoryBuffer: Use GetNativeSystemInfo()Alp Toker1-9/+0
2014-05-18Remove last uses of OwningPtr from llvm. As far as I can tell these method ve...Craig Topper1-52/+0
2014-05-09MemoryBuffer: don't force mmap when stat failsAlp Toker1-3/+2
2014-05-09MemoryBuffer: remove unusued definitionsAlp Toker1-8/+0
2014-05-06[Support/MemoryBuffer] Remove the assertion that the file size did not shrink.Argyrios Kyrtzidis1-3/+0
2014-05-06[Support/MemoryBuffer] Rename IsVolatile -> IsVolatileSize and add a comment ...Argyrios Kyrtzidis1-22/+23
2014-05-06[Support/MemoryBuffer] Move the IsVolatile check inside shouldUseMmap() and m...Argyrios Kyrtzidis1-7/+13
2014-05-05[Support/MemoryBuffer] Introduce a boolean parameter (false by default) 'IsVo...Argyrios Kyrtzidis1-18/+32
2014-04-07[C++11] Make use of 'nullptr' in the Support library.Craig Topper1-3/+3
2014-03-10[C++11] Remove 'virtual' keyword from methods marked with 'override' keyword.Craig Topper1-4/+4
2014-03-05[C++11] Add overloads for externally used OwningPtr functions.Ahmed Charles1-20/+68
2014-03-02Switch all uses of LLVM_OVERRIDE to just use 'override' directly.Craig Topper1-4/+4
2013-12-16MemoryBuffer: Increase the alignment of small file buffers to 16Reid Kleckner1-2/+3
2013-10-25Change MemoryBuffer::getFile to take a Twine.Rafael Espindola1-8/+12
2013-09-10Fix typoMatt Arsenault1-1/+1
2013-09-04MemoryBuffer.cpp: Don't peek the next page if file is multiple of *physical* ...NAKAMURA Takumi1-0/+9
2013-09-04Whitespace.NAKAMURA Takumi1-1/+1
2013-08-22MemoryBuffer.cpp: Consider if PageSize were not 4096 in shouldUseMmap(). Foll...NAKAMURA Takumi1-1/+1
2013-07-23Split getOpenFile into getOpenFile and getOpenFileSlice.Rafael Espindola1-7/+25
2013-07-18Convert two uses if fstat with sys::fs::status.Rafael Espindola1-14/+13
2013-07-16Add a wrapper for open.Rafael Espindola1-8/+4
2013-07-15Remove an extra is_directory call.Rafael Espindola1-11/+0
2013-06-25keep only the StringRef version of getFileOrSTDIN.Rafael Espindola1-8/+0
2013-06-12Remove the program class.Rafael Espindola1-1/+1
2013-06-12Remove the old file memory mapping functions.Rafael Espindola1-2/+1
2013-03-30Put private class into an anonmyous namespace.Benjamin Kramer1-0/+2