| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 107785
|
|
|
|
| |
llvm-svn: 104959
|
|
|
|
| |
llvm-svn: 104958
|
|
|
|
|
|
| |
Update the comment.
llvm-svn: 104021
|
|
|
|
|
|
|
|
| |
automatic syscall restarting is disabled.
Also, fix the build on systems which don't define EWOULDBLOCK.
llvm-svn: 103158
|
|
|
|
|
|
|
|
|
| |
EAGAIN and EWOULDBLOCK are used here.
Also, handle the case where a write call is interrupted after
some data has already been written.
llvm-svn: 103153
|
|
|
|
|
|
|
| |
This should fix mysteriously crashing boost regression tests when stderr is
managed by bjam (PR7043).
llvm-svn: 103085
|
|
|
|
| |
llvm-svn: 100895
|
|
|
|
| |
llvm-svn: 100709
|
|
|
|
| |
llvm-svn: 99414
|
|
|
|
| |
llvm-svn: 97769
|
|
|
|
|
|
| |
which may call write_impl on things that are not the usual buffer.
llvm-svn: 96209
|
|
|
|
| |
llvm-svn: 94809
|
|
|
|
| |
llvm-svn: 94807
|
|
|
|
| |
llvm-svn: 94222
|
|
|
|
|
|
| |
that doesn't want to use twines.
llvm-svn: 94199
|
|
|
|
|
|
|
|
| |
it changes raw_fd_ostream::preferred_buffer_size to return zero on
a scary stat failure instead of setting the stream to an error state.
This method really should not mutate the stream.
llvm-svn: 91740
|
|
|
|
| |
llvm-svn: 91316
|
|
|
|
| |
llvm-svn: 84355
|
|
|
|
|
|
|
| |
- As best I can tell, we have eliminated all the code which used to require a
larger buffer size.
llvm-svn: 81912
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
working. To support this, add an is_displayed() function to raw_ostream,
and generalize Process::StandardOutIsDisplayed and friends in order to
support it.
Also, call RemoveFileOnSignal before creating a file instead of after, so
that the file isn't left behind if the program is interrupted between when
the file is created and RemoveFileOnSignal is called.
While here, add a -S to llvm-extract and port it to IRReader so that it
supports assembly input.
llvm-svn: 81568
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is conventional command-line tool behavior. -f now just means
"enable binary output on terminals".
Add a -f option to llvm-extract and llvm-link, for consistency.
Remove F_Force from raw_fd_ostream and enable overwriting and
truncating by default. Introduce an F_Excl flag to permit users to
enable a failure when the file already exists. This flag is
currently unused.
Update Makefiles and documentation accordingly.
llvm-svn: 79990
|
|
|
|
| |
llvm-svn: 79894
|
|
|
|
|
|
| |
than 16 spaces. Make the Spaces array wide enough to handle common cases.
llvm-svn: 79890
|
|
|
|
|
|
|
| |
means that raw_ostream no longer has to #include <iosfwd>. Nothing in llvm
should use raw_os_ostream.h, but llvm-gcc and some unit tests do.
llvm-svn: 79886
|
|
|
|
|
|
|
| |
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.
llvm-svn: 79885
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- This also shortens the Format.h implementation, and uses the print buffer
fully (it was wasting a character).
- This manifested as llvm-test failures, because one side effect was that
raw_ostream would write garbage '\x00' values into the output stream if it
happened that the string was at the end of the buffer. This meant that grep
would report 'Binary file matches', which meant the silly pattern matching
llvm-test eventually does would fail. Cute. :)
llvm-svn: 79862
|
|
|
|
| |
llvm-svn: 79845
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of as two bools. Use this to add a F_Append flag
which has the obvious behavior.
Other unrelated changes conflated into this patch:
1. REmove EH stuff from llvm-dis and llvm-as, the try blocks
are dead.
2. Simplify the filename inference code in llvm-as/llvm-dis,
because raw_fd_ostream does the right thing with '-'.
3. Switch machine verifier to use raw_ostream instead of ostream
(Which is the thing that needed append in the first place).
llvm-svn: 79807
|
|
|
|
|
|
|
|
| |
OS.indent(i) << "whatever";
people seem to like indenting things ;-)
llvm-svn: 79784
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
right.
- This class turns out to be much more convenient to use if we do this; clients
can make sure the buffer is always big enough if they care (since our current
idiom tends to be to use a SmallString<256> for the input to this we should
generally be avoiding an unnecessary malloc).
Also, add a convenience raw_svector_ostream::str method which flushes the buffer
and returns a StringRef for the vector contents.
llvm-svn: 79446
|
|
|
|
|
|
|
| |
- This avoids unnecessary malloc/free overhead in the common case, and
unnecessary copying from the ostream buffer into the output vector.
llvm-svn: 79434
|
|
|
|
|
|
| |
rather obscure way (the other candidate is r79377).
llvm-svn: 79426
|
|
|
|
|
|
| |
unsigned).
llvm-svn: 79386
|
|
|
|
|
|
| |
- The base class implementation is correct.
llvm-svn: 79385
|
|
|
|
|
|
| |
buffer.
llvm-svn: 79382
|
|
|
|
|
|
| |
div/mods in 32-bits.
llvm-svn: 79375
|
|
|
|
|
|
|
|
|
| |
allow underlying stream classes to decline buffering. After
calling SetBuffered(), re-check whether the stream is Unbuffered
in order to handle the case where the underlying stream has
declined buffering.
llvm-svn: 79362
|
|
|
|
| |
llvm-svn: 79361
|
|
|
|
| |
llvm-svn: 79142
|
|
|
|
|
|
| |
a terminal, not just when it's STDOUT_FILENO.
llvm-svn: 79066
|
|
|
|
|
|
|
|
| |
mimic the behavior of stdtout, which is line-buffered when the output
is a terminal. This fixes some issues with bugpoint output appearing
being printed out of order.
llvm-svn: 78953
|
|
|
|
| |
llvm-svn: 78933
|
|
|
|
| |
llvm-svn: 78926
|
|
|
|
|
|
|
|
| |
unbuffered. std::ostream does its own buffering, and std::string and
SmallVector both have allocation strategies intended to handle frequent
appending.
llvm-svn: 78924
|
|
|
|
|
|
|
| |
needs of the underlying output mechanism. raw_fd_ostream now uses
st_blksize from fstat to determine a buffer size.
llvm-svn: 78923
|
|
|
|
| |
llvm-svn: 78909
|
|
|
|
|
|
|
| |
a full buffer, rather than often being called with a
slightly-less-than-full buffer.
llvm-svn: 78907
|
|
|
|
| |
llvm-svn: 77614
|
|
|
|
| |
llvm-svn: 77477
|