| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
LLVM_LIKELY/LLVM_UNLIKELY interface.
llvm-svn: 162873
|
|
|
|
| |
llvm-svn: 160558
|
|
|
|
| |
llvm-svn: 160142
|
|
|
|
|
|
|
| |
To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell, with a minor fix for mingw by me.
llvm-svn: 154805
|
|
|
|
| |
llvm-svn: 154802
|
|
|
|
|
|
|
| |
To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell!
llvm-svn: 154800
|
|
|
|
| |
llvm-svn: 146522
|
|
|
|
| |
llvm-svn: 141905
|
|
|
|
|
|
| |
non-deterministic crash in the test suite. Fixes PR10055!
llvm-svn: 138717
|
|
|
|
|
|
|
| |
On MSVCRT and compatible, output of %e is incompatible to Posix by default. Number of exponent digits should be at least 2. "%+03d"
FIXME: Implement our formatter in future!
llvm-svn: 127872
|
|
|
|
|
|
|
|
| |
called at dtor context.
report_fatal_error() invokes exit(). We know report_fatal_error() might not write messages to stderr when any errors were detected on FD == 2.
llvm-svn: 127726
|
|
|
|
|
|
|
|
|
|
| |
inefficient file system buffering if the writes are not a multiple of the desired
buffer size. Avoid this by limiting the large write to a multiple of the buffer
size and copying the remainder into the buffer.
Thanks to Dan for pointing this out.
llvm-svn: 127026
|
|
|
|
|
|
|
|
| |
directly instead of doing many buffer-sized writes.
This caps the number of write(2) calls per string to a maximum of 2.
llvm-svn: 127010
|
|
|
|
| |
llvm-svn: 124771
|
|
|
|
| |
llvm-svn: 123643
|
|
|
|
| |
llvm-svn: 120298
|
|
|
|
| |
llvm-svn: 120200
|
|
|
|
|
|
| |
setmode is provided by io.h on Cygwin.
llvm-svn: 116784
|
|
|
|
|
|
| |
unwanted end of line conversion on Windows. Should not affect Unix where O_BINARY is not defined. This fix /clang/test/lexer/preamble.c XFAIL on WIN32.
llvm-svn: 116509
|
|
|
|
| |
llvm-svn: 115973
|
|
|
|
|
|
|
|
|
|
| |
of a base class.
This makes it possible to unregister the file from FilesToRemove when
the file is done. Also, this eliminates the need for
formatted_tool_output_file.
llvm-svn: 112706
|
|
|
|
|
|
| |
pending output errors are detected.
llvm-svn: 111643
|
|
|
|
|
|
|
| |
outside of outs() and errs() themselves, and they don't really
need custom classes.
llvm-svn: 111642
|
|
|
|
|
|
| |
class which is using it.
llvm-svn: 111639
|
|
|
|
|
|
|
|
| |
functionality that most command-line tools need: ensuring that the
output file gets deleted if the tool is interrupted or encounters an
error.
llvm-svn: 111595
|
|
|
|
|
|
|
|
|
| |
constructed with an output filename of "-". In particular, allow the
file descriptor to be closed, and close the file descriptor in the
destructor if it hasn't been explicitly closed already, to ensure
that any write errors are detected.
llvm-svn: 111436
|
|
|
|
| |
llvm-svn: 111339
|
|
|
|
|
|
|
|
|
|
| |
(e.g. errs()) fails in close() due to (e.g.) a broken pipe. As
previously written, the had_error() flag would get set and then
the raw_ostream dtor would report a fatal error. There is nothing
the client can do about this and we have no way to report the error,
so just eat it.
llvm-svn: 111321
|
|
|
|
| |
llvm-svn: 110114
|
|
|
|
| |
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
|