aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)Author
2013-07-22Unbreak the Windows/Cygwin toolchain build after the 3.3 merge.Eli Bendersky
2013-07-15Merge commit '7dfcb84fc16b3bf6b2379713b53090757f0a45f9'Eli Bendersky
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-11Merge commit '279b9184c2ff4fea93b198a3519b8cb3a1d8d195'Eli Bendersky
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
2013-01-30Merge commit 'a662a9862501fc86904e90054f7c1519101d9126'Derek Schuff
2013-01-11Merge commit '1ad9253c9d34ccbce3e7e4ea5d87c266cbf93410'Derek Schuff
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-13Merge commit 'be02a90de17f857ba65bbd8a11653ca1bad30adc'Derek Schuff
2012-11-06MemoryBuffer: Windows doesn't define S_IFIFO.Daniel Dunbar
2012-11-05MemoryBuffer: Support reading named pipes in getFile().Daniel Dunbar
2012-10-19llvm: Remove some localmods in MemoryBuffer and clean nacl_file a bit.Jan Voung
2012-09-25Merge commit 'bc4021f31eaa97ee52655828da3e3de14a39e4a6'Derek Schuff
2012-09-23Add LLVM_OVERRIDE to methods that override their base classes.Craig Topper
2012-08-21Merge up to r162331, git commit bc363931085587bac42a40653962a3e5acd1ffceDerek Schuff
2012-08-17Merge commit 'c723eb1aef817d47feec620933ee1ec6005cdd14'Derek Schuff
2012-07-11In MemoryBuffer::getOpenFile() don't verify that the mmap'edArgyrios Kyrtzidis
2012-07-09LOCALMODs from hg 0b098ca44de7 against r158408 (hg 90a87d6bfe45)Derek Schuff
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