aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MemoryBuffer.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-11-06MemoryBuffer: Windows doesn't define S_IFIFO.Daniel Dunbar1-1/+4
2012-11-05MemoryBuffer: Support reading named pipes in getFile().Daniel Dunbar1-16/+29
2012-09-23Add LLVM_OVERRIDE to methods that override their base classes.Craig Topper1-5/+5
2012-07-11In MemoryBuffer::getOpenFile() don't verify that the mmap'edArgyrios Kyrtzidis1-10/+0
2012-06-20Remove an "else" that snuck in after a "return" ;)Kaelyn Uhrain1-1/+1
2012-06-20Check that a file is not a directory before reading it into a MemoryBuffer.Kaelyn Uhrain1-0/+9
2012-04-05In MemoryBuffer::getOpenFile() make sure that the buffer is null-terminated ifArgyrios Kyrtzidis1-0/+11
2012-03-13Add a sanity check in MemoryBuffer::getOpenFile() to make sure we don't hangArgyrios Kyrtzidis1-1/+5
2012-02-09Change default error_code ctor to a 'named ctor' so it's more self-documenting.David Blaikie1-5/+3
2011-11-22Add configure checking for pread(2) and use it to save a syscall when reading...Benjamin Kramer1-0/+7
2011-11-22Turn error recovery into an assert.Benjamin Kramer1-6/+1
2011-10-20Remove unused include of sys/uio.h in MemoryBuffer.cpp. It was not correctly ...David Meyer1-1/+0
2011-09-15use 64-bit types instead of off_t/size_t to avoid the issue whenIvan Krasin1-4/+4
2011-05-22random comment cleanups.Chris Lattner1-4/+4
2011-04-28Add MemoryBuffer::getBufferKind() to report whether a memory buffer uses mall...Ted Kremenek1-0/+8
2011-03-22We don't need a null terminator for the output file.Rafael Espindola1-4/+8
2011-03-18Check RequiresNullTerminator first, or we might read from an invalid address.Rafael Espindola1-1/+1
2011-03-17Use RequiresNullTerminator to create buffers without a null terminatorRafael Espindola1-2/+4
2011-03-10Don't compute the file size if we don't need to.Rafael Espindola1-14/+29
2011-03-10Add r127409 back now that the windows file was updated.Rafael Espindola1-25/+74
2011-03-10Revert r127409 which broke all the Windows bots.Jakob Stoklund Olesen1-74/+25
2011-03-10Add support for MemoryBuffers that are not null terminated and addRafael Espindola1-25/+74
2011-02-08Don't open the file again in the gold plugin. To be able to do this, updateRafael Espindola1-12/+3
2010-12-19Add missing standard headers. Patch by Joerg Sonnenberger!Nick Lewycky1-0/+1
2010-12-16MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> v...Michael J. Spencer1-34/+38
2010-12-09Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code...Michael J. Spencer1-18/+20
2010-11-29Merge System into Support.Michael J. Spencer1-9/+9
2010-11-23add a MemoryBuffer::getOpenFile method, which turns an openChris Lattner1-0/+7
2010-11-23Revert functionality doug added in r98575 that was neverChris Lattner1-15/+11
2010-06-25Rewrite MemoryBuffer::getSTDIN to use read(2) and a SmallVector buffer.Benjamin Kramer1-15/+15
2010-06-25Bring back the empty vector workaround I removed in r106839. Looks like MSVC ...Benjamin Kramer1-1/+2
2010-06-25Tweak MemoryBuffer to allocate the class itself, the name and possibly theBenjamin Kramer1-70/+60
2010-06-24Add overloads for getFile and getFileOrSTDIN which take a const char *Dan Gohman1-3/+17
2010-06-22Add an explicit keyword.Dan Gohman1-1/+1
2010-05-27Add basic error checking to MemoryBuffer::getSTDIN.Dan Gohman1-2/+7
2010-04-05stringref-ize the MemoryBuffer::get apis. This requiresChris Lattner1-11/+8
2010-04-01Remove accidental include and add a comment.Benjamin Kramer1-2/+2
2010-04-01Various improvements to MemoryBuffer::getFile:Benjamin Kramer1-17/+26
2010-03-15Extend MemoryBuffer::getFile() to take an optional "stat" structureDouglas Gregor1-7/+10
2010-02-26Replace a temporary std::string with SmallString.Benjamin Kramer1-1/+2
2009-12-23sizeof(char) is always 1.Chris Lattner1-2/+2
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