aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)AuthorFilesLines
2009-12-01return more useful error messages by using strerror to format errnoChris Lattner1-3/+3
2009-11-10Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a ...Daniel Dunbar1-16/+14
2009-11-04A value is only assigned to errno if NumRead equals -1, so doDuncan Sands1-1/+1
2009-11-03Make this code more robust by not thinking we are making progressDuncan Sands1-1/+1
2009-05-18Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF. Eli Friedman1-3/+6
2009-02-13Switch from new[] + delete[] to malloc + free since llvm does not catch C++ e...Evan Cheng1-3/+3
2009-02-13If new[] fails, return 0 rather then trying to dereference a null pointer.Evan Cheng1-3/+12
2008-05-05Fix more -Wshorten-64-to-32 warnings.Evan Cheng1-3/+3
2008-04-30fcntl.h is pretty standard on unix (without the sys/)Gabor Greif1-2/+1
2008-04-01Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!Bill Wendling1-1/+2
2008-04-01Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner1-13/+8
2008-04-01Reimplement MemoryBuffer::getFile with three enhancements:Chris Lattner1-85/+64
2008-04-01Remove the MappedFile::charBase member, rename base -> getBase() andChris Lattner1-3/+4
2008-04-01Remove MappedFile support for mapping files for write and execChris Lattner1-1/+1
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner1-2/+2
2007-11-18Fix the Linker testcase regressions, by making MemoryBuffer::getFileOrSTDIN r...Chris Lattner1-0/+18
2007-10-09Add new MemoryBuffer::getMemBufferCopy method.Chris Lattner1-2/+15
2007-08-08Make getSTDIN return null if the standard input is empty, as the header fileReid Spencer1-2/+4
2007-07-01Fix undefined behaviour reported by the new --enable-expensive-checks option.Nick Lewycky1-1/+2
2007-05-11fix a memory leakChris Lattner1-1/+1
2007-05-07Unbreak VC++ build.Jeff Cohen1-0/+2
2007-05-06Enhance MemoryBuffer to return error messages in strings if they occur.Chris Lattner1-7/+11
2007-05-06Fix MemoryBuffer::getFile to return null if it has an error opening theChris Lattner1-8/+20
2007-04-29Fix MemoryBuffer breakage correctly.Jeff Cohen1-1/+1
2007-04-29Unbreak build.Jeff Cohen1-1/+2
2007-04-29Add a new memorybuffer class, to unify all the file reading code in the systemChris Lattner1-0/+239