aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)Author
2012-04-05In MemoryBuffer::getOpenFile() make sure that the buffer is null-terminated ifArgyrios Kyrtzidis
2012-03-13Add a sanity check in MemoryBuffer::getOpenFile() to make sure we don't hangArgyrios Kyrtzidis
2012-02-09Change default error_code ctor to a 'named ctor' so it's more self-documenting.David Blaikie
2011-11-22Add configure checking for pread(2) and use it to save a syscall when reading...Benjamin Kramer
2011-11-22Turn error recovery into an assert.Benjamin Kramer
2011-10-20Remove unused include of sys/uio.h in MemoryBuffer.cpp. It was not correctly ...David Meyer
2011-09-15use 64-bit types instead of off_t/size_t to avoid the issue whenIvan Krasin
2011-05-22random comment cleanups.Chris Lattner
2011-04-28Add MemoryBuffer::getBufferKind() to report whether a memory buffer uses mall...Ted Kremenek
2011-03-22We don't need a null terminator for the output file.Rafael Espindola
2011-03-18Check RequiresNullTerminator first, or we might read from an invalid address.Rafael Espindola
2011-03-17Use RequiresNullTerminator to create buffers without a null terminatorRafael Espindola
2011-03-10Don't compute the file size if we don't need to.Rafael Espindola
2011-03-10Add r127409 back now that the windows file was updated.Rafael Espindola
2011-03-10Revert r127409 which broke all the Windows bots.Jakob Stoklund Olesen
2011-03-10Add support for MemoryBuffers that are not null terminated and addRafael Espindola
2011-02-08Don't open the file again in the gold plugin. To be able to do this, updateRafael Espindola
2010-12-19Add missing standard headers. Patch by Joerg Sonnenberger!Nick Lewycky
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> v...Michael J. Spencer
2010-12-09Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code...Michael J. Spencer
2010-11-29Merge System into Support.Michael J. Spencer
2010-11-23add a MemoryBuffer::getOpenFile method, which turns an openChris Lattner
2010-11-23Revert functionality doug added in r98575 that was neverChris Lattner
2010-06-25Rewrite MemoryBuffer::getSTDIN to use read(2) and a SmallVector buffer.Benjamin Kramer
2010-06-25Bring back the empty vector workaround I removed in r106839. Looks like MSVC ...Benjamin Kramer
2010-06-25Tweak MemoryBuffer to allocate the class itself, the name and possibly theBenjamin Kramer
2010-06-24Add overloads for getFile and getFileOrSTDIN which take a const char *Dan Gohman
2010-06-22Add an explicit keyword.Dan Gohman
2010-05-27Add basic error checking to MemoryBuffer::getSTDIN.Dan Gohman
2010-04-05stringref-ize the MemoryBuffer::get apis. This requiresChris Lattner
2010-04-01Remove accidental include and add a comment.Benjamin Kramer
2010-04-01Various improvements to MemoryBuffer::getFile:Benjamin Kramer
2010-03-15Extend MemoryBuffer::getFile() to take an optional "stat" structureDouglas Gregor
2010-02-26Replace a temporary std::string with SmallString.Benjamin Kramer
2009-12-23sizeof(char) is always 1.Chris Lattner
2009-12-01return more useful error messages by using strerror to format errnoChris Lattner
2009-11-10Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a ...Daniel Dunbar
2009-11-04A value is only assigned to errno if NumRead equals -1, so doDuncan Sands
2009-11-03Make this code more robust by not thinking we are making progressDuncan Sands
2009-05-18Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF. Eli Friedman
2009-02-13Switch from new[] + delete[] to malloc + free since llvm does not catch C++ e...Evan Cheng
2009-02-13If new[] fails, return 0 rather then trying to dereference a null pointer.Evan Cheng
2008-05-05Fix more -Wshorten-64-to-32 warnings.Evan Cheng
2008-04-30fcntl.h is pretty standard on unix (without the sys/)Gabor Greif
2008-04-01Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!Bill Wendling
2008-04-01Change the MemoryBuffer::getFile* methods to take just a pointer to theChris Lattner
2008-04-01Reimplement MemoryBuffer::getFile with three enhancements:Chris Lattner
2008-04-01Remove the MappedFile::charBase member, rename base -> getBase() andChris Lattner
2008-04-01Remove MappedFile support for mapping files for write and execChris Lattner
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner