aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)Author
2013-03-30Put private class into an anonmyous namespace.Benjamin Kramer
2013-03-14[Support] Fix lifetime of file descriptors when using MemoryBuffer.Michael J. Spencer
2013-03-12[Support][MemoryBuffer] Use sys::fs::mapped_file_region instead of sys::Path:...Michael J. Spencer
2013-03-01In llvm::MemoryBuffer::getFile() remove an unnecessary stat call check.Argyrios Kyrtzidis
2013-02-19Update a portability kludge to keep it in sync with changes in the codeDan Gohman
2013-02-19Whitelist files and block devices instead of blacklisting fifos andDan Gohman
2013-02-19Don't trust st_size of a character device. This fixes usingDan Gohman
2012-12-31Go ahead and get rid of the old page size interface and convert all theChandler Carruth
2012-12-03Use the new script to sort the includes of every file under lib.Chandler Carruth
2012-11-06MemoryBuffer: Windows doesn't define S_IFIFO.Daniel Dunbar
2012-11-05MemoryBuffer: Support reading named pipes in getFile().Daniel Dunbar
2012-09-23Add LLVM_OVERRIDE to methods that override their base classes.Craig Topper
2012-07-11In MemoryBuffer::getOpenFile() don't verify that the mmap'edArgyrios Kyrtzidis
2012-06-20Remove an "else" that snuck in after a "return" ;)Kaelyn Uhrain
2012-06-20Check that a file is not a directory before reading it into a MemoryBuffer.Kaelyn Uhrain
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