- Mar 30, 2013
-
-
Benjamin Kramer authored
llvm-svn: 178420
-
- Mar 14, 2013
-
-
Michael J. Spencer authored
Clients of MemoryBuffer::getOpenFile expect it not to take ownership of the file descriptor passed in. So don't. llvm-svn: 176995
-
- Mar 12, 2013
-
-
Michael J. Spencer authored
This gives us memory mapped file I/O on Windows. llvm-svn: 176886
-
- Mar 01, 2013
-
-
Argyrios Kyrtzidis authored
The sys::fs::is_directory() check is unnecessary because, if the filename is a directory, the function will fail anyway with the same error code returned. Remove the check to avoid an unnecessary stat call. Someone needs to review on windows and see if the check is necessary there or not. llvm-svn: 176386
-
- Feb 19, 2013
-
-
Dan Gohman authored
which uses it. This is not ideal, but it ought to at least restore the behavior to what it was before. llvm-svn: 175571
-
Dan Gohman authored
character devices. llvm-svn: 175549
-
Dan Gohman authored
/dev/stdin as an input when stdin is connected to a tty, for example. No test, because it's difficult to write a reasonably portable test for this. /dev/stdin isn't a character device when stdin is redirected from a file or connected to a pipe. llvm-svn: 175542
-
- Jan 01, 2013
-
-
Chandler Carruth authored
users over to the new one. No sense maintaining this "compatibility" layer it seems. llvm-svn: 171331
-
- Dec 03, 2012
-
-
Chandler Carruth authored
Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
-
- Nov 06, 2012
-
-
Daniel Dunbar authored
llvm-svn: 167467
-
- Nov 05, 2012
-
-
Daniel Dunbar authored
- We only support this when the client didn't claim to know the file size. llvm-svn: 167407
-
- Sep 23, 2012
-
-
Craig Topper authored
llvm-svn: 164471
-
- Jul 11, 2012
-
-
Argyrios Kyrtzidis authored
file buffer is null-terminated. If the file is smaller than we thought, mmap will not allow dereferencing past the pages that are enough to cover the actual file size, even though we asked for a larger address range. rdar://11612916 llvm-svn: 160075
-
- Jun 20, 2012
-
-
Kaelyn Uhrain authored
llvm-svn: 158844
-
Kaelyn Uhrain authored
llvm-svn: 158841
-
- Apr 05, 2012
-
-
Argyrios Kyrtzidis authored
the caller requested a null-terminated one. When mapping the file there could be a racing issue that resulted in the file being larger than the FileSize passed by the caller. We already have an assertion for this in MemoryBuffer::init() but have a runtime guarantee that the buffer will be null-terminated, so do a copy that adds a null-terminator. Protects against crash of rdar://11161822. llvm-svn: 154082
-
- Mar 13, 2012
-
-
Argyrios Kyrtzidis authored
if the passed in FileSize is inaccurate. rdar://11034179 llvm-svn: 152662
-
- Feb 09, 2012
-
-
David Blaikie authored
Unify default construction of error_code uses on this idiom so that users don't feel compelled to make static globals for naming convenience. (unfortunately I couldn't make the original ctor private as some APIs don't return their result, instead using an out parameter (that makes sense to default construct) - which is a bit of a pity. I did, however, find/fix some cases of unnecessary default construction of error_code before I hit the unfixable cases) llvm-svn: 150197
-
- Nov 22, 2011
-
-
Benjamin Kramer authored
llvm-svn: 145061
-
Benjamin Kramer authored
This was put in because in a certain version of DragonFlyBSD stat(2) lied about the size of some files. This was fixed a long time ago so we can remove the workaround. llvm-svn: 145059
-
- Oct 20, 2011
-
-
David Meyer authored
Remove unused include of sys/uio.h in MemoryBuffer.cpp. It was not correctly protected by ifdef either. llvm-svn: 142623
-
- Sep 16, 2011
-
-
Ivan Krasin authored
gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. llvm-svn: 139873
-
- May 22, 2011
-
-
Chris Lattner authored
llvm-svn: 131829
-
- Apr 28, 2011
-
-
Ted Kremenek authored
Add MemoryBuffer::getBufferKind() to report whether a memory buffer uses malloc'ed or mmap'ed memory. This is for performance analysis. llvm-svn: 130432
-
- Mar 22, 2011
-
-
Rafael Espindola authored
llvm-svn: 128098
-
- Mar 18, 2011
-
-
Rafael Espindola authored
llvm-svn: 127853
-
- Mar 17, 2011
-
-
Rafael Espindola authored
instead of copying. llvm-svn: 127835
-
- Mar 10, 2011
-
-
Rafael Espindola authored
llvm-svn: 127426
-
Rafael Espindola authored
llvm-svn: 127417
-
Jakob Stoklund Olesen authored
llvm-svn: 127413
-
Rafael Espindola authored
support for creating buffers that cover only a part of a file. llvm-svn: 127409
-
- Feb 08, 2011
-
-
Rafael Espindola authored
MemoryBuffer::getOpenFile to not close the file descriptor. llvm-svn: 125128
-
- Dec 19, 2010
-
-
Nick Lewycky authored
llvm-svn: 122193
-
- Dec 16, 2010
-
-
Michael J. Spencer authored
llvm-svn: 121958
-
- Dec 09, 2010
-
-
Michael J. Spencer authored
llvm-svn: 121379
-
- Nov 29, 2010
-
-
Michael J. Spencer authored
llvm-svn: 120298
-
- Nov 23, 2010
-
-
Chris Lattner authored
file descriptor into a MemoryBuffer (and closes the FD). llvm-svn: 120065
-
Chris Lattner authored
documented and only used by some clang stuff I just removed. llvm-svn: 120002
-
- Jun 25, 2010
-
-
Benjamin Kramer authored
llvm-svn: 106856
-
Benjamin Kramer authored
llvm-svn: 106841
-