History log of /external/llvm/lib/Support/raw_ostream.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
de2d8694e25a814696358e95141f4b1aa4d8847e 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r275480

Bug: http://b/31320715

This merges commit 7dcf7f03e005379ef2f06db96aa93f06186b66d5 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Iaf3738f74312d875e69f61d604ac058f381a2a1a
/external/llvm/lib/Support/raw_ostream.cpp
f3ef5332fa3f4d5ec72c178a2b19dac363a19383 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r256229

http://b/26987366

Change-Id: I1f29c4676a8abe633ab5707dded58d846c973d50
/external/llvm/lib/Support/raw_ostream.cpp
6948897e478cbd66626159776a8017b3c18579b9 01-Jul-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da
/external/llvm/lib/Support/raw_ostream.cpp
0c7f116bb6950ef819323d855415b2f2b0aad987 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
/external/llvm/lib/Support/raw_ostream.cpp
ebe69fe11e48d322045d5949c83283927a0d790b 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r230699.

Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
/external/llvm/lib/Support/raw_ostream.cpp
37ed9c199ca639565f6ce88105f9e39e898d82d0 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master LLVM for rebase to r222494.

Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
/external/llvm/lib/Support/raw_ostream.cpp
c6a4f5e819217e1e12c458aed8e7b122e23a3a58 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/lib/Support/raw_ostream.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/Support/raw_ostream.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/lib/Support/raw_ostream.cpp
63fac20ec524fdbcc59e94c0950be15ee660b3be 03-Oct-2013 Benjamin Kramer <benny.kra@googlemail.com> raw_fd_ostream: Be more verbose about the reason when opening a file fails.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
f7e73accb7abe472a1febc38888133df6149cfed 17-Jul-2013 NAKAMURA Takumi <geek4civic@gmail.com> raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, llvm::outs() would be set to O_TEXT by default.

llvm/test/Object/check_binary_output.ll is expected to pass on win32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186480 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c1b49b56d4132efa2e06deb8f23508d0de4c8800 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a wrapper for open.

This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
67f9b377ba636f5cf645b585d6f84ceba286a4ec 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Create files with mode 666. This matches the behavior of other unix tools.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9f1d9fd1964d82f3e801efb71518144492cdf290 12-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove the program class.

It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183864 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
2b7f2190514244cedc6b74aea42c2f9a3ee714a9 27-Mar-2013 Chad Rosier <mcrosier@apple.com> Don't try to generate crash diagnostics if we had an I/O failure. It's very
likely the crash diagnostics generation will fail as well.
Part of rdar://13296693


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b79d25ca9c3b895d8fdc88c3acefec1202ca9da3 13-Mar-2013 Matt Beaumont-Gay <matthewbg@google.com> Don't crash if write_impl() leaves less buffer space available than expected.

This was tickled by a Clang diagnostic; Clang test case to follow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
87d0b9ed1462705dd9bf1cb7f67d0bf03af776c8 12-Feb-2013 Guy Benyei <guy.benyei@intel.com> Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Use the new script to sort the includes of every file under lib.

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. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
55907d1274ce715b92d584e305e0708e333a33c0 30-Aug-2012 Benjamin Kramer <benny.kra@googlemail.com> Replace the BUILTIN_EXPECT macro with a less horrible LLVM_LIKELY/LLVM_UNLIKELY interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d79637b940dfbcdc0b7c702d9655491ecca9d93d 20-Jul-2012 Daniel Dunbar <daniel@zuster.org> raw_ostream: Add a has_colors() method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d897599e5ba43c644c685c916f55e70a56f420ff 12-Jul-2012 Galina Kistanova <gkistanova@gmail.com> Fixed few warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
246de858e37a989a9cdf9b80d7434453b2c52e70 16-Apr-2012 Benjamin Kramer <benny.kra@googlemail.com> Reapply 'Add reverseColor to raw_ostream'.

To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell, with a minor fix for mingw by me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c9413c745bec9707064211bc5fd02cdfb153c92d 16-Apr-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> Revert r154800 which breaks windows builders.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154802 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
7d31d75a77bb7a5a47f21d4c311ba13be86caa6f 16-Apr-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> Add reverseColor to raw_ostream.

To be used in printing unprintable source in clang diagnostics.
Patch by Seth Cantrell!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b92cb30cf547bf9a8590a981a49040f480c8eb82 14-Dec-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/Program: Make Change<stream>ToBinary return error_code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
90406e18b8590d9588a76b849937d643dd3dc8b5 14-Oct-2011 Eli Friedman <eli.friedman@gmail.com> Avoid undefined behavior in signed integer negation. Patch by Ahmed Charles.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141905 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b1b051ec97c4e3c02cea554e169cbb4f85bcb2de 28-Aug-2011 Nick Lewycky <nicholas@mxc.ca> Fix integer overflow bug in raw_ostream::write. This showed up as a
non-deterministic crash in the test suite. Fixes PR10055!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138717 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d4f4e6ee2c1eb80b8a1d3199e7747405fee956a3 18-Mar-2011 NAKAMURA Takumi <geek4civic@gmail.com> raw_ostream: [PR6745] Tweak formatting (double)%e for Windows hosts.

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!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
7a7215b563ad03d499742612d7d595b9299664b7 16-Mar-2011 NAKAMURA Takumi <geek4civic@gmail.com> lib/Support/raw_ostream.cpp: On mingw, report_fatal_error() should not be 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ca9714470ec51ec52833eee46bca0062d92e92f3 04-Mar-2011 Benjamin Kramer <benny.kra@googlemail.com> raw_ostream: while it is generally desirable to do larger writes, it can lead to
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127026 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e90756d8a095264f6d6ae6b3a660e73c587162cd 04-Mar-2011 Benjamin Kramer <benny.kra@googlemail.com> raw_ostream: If writing a string that is larger than the buffer, write it directly instead of doing many buffer-sized writes.

This caps the number of write(2) calls per string to a maximum of 2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b0cfa6cab85ce19c8ecaf9cdd3e34a3593d0b001 03-Feb-2011 Daniel Dunbar <daniel@zuster.org> raw_fd_ostream: Add a SetUseAtomicWrites() method (uses writev).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124771 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
2634a5425c29eca79f2cc2e309274d365697d0a7 17-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/raw_ostream: Fix uninitalized variable in raw_fd_ostream constructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123643 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
10a049e6cf50eb9a1dddae49dc21513cfeddcb47 27-Nov-2010 Daniel Dunbar <daniel@zuster.org> raw_ostream::write_escaped: Add a UseHexEscapes argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
1b5de0e7ee9e604d041cda1af544e27971ebeb81 19-Oct-2010 NAKAMURA Takumi <geek4civic@gmail.com> lib/Support/raw_ostream.cpp: Fix Cygwin's build.

setmode is provided by io.h on Cygwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
a872a0f5f800b352ab9af9d0f1e975ea0dead4ef 14-Oct-2010 Francois Pichet <pichet2000@gmail.com> Always use binary mode for output stream. This is important to prevent 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116509 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e4f1a9b8a272ff7452759019ee7774e9dbdf1568 07-Oct-2010 Dan Gohman <gohman@apple.com> Move tool_output_file into its own file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115973 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d4c454317a38d65957edebe62bfc69fc8d9885e8 01-Sep-2010 Dan Gohman <gohman@apple.com> Make tool_output_file's raw_ostream instance a member variable instead
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
5d56d9df928c48571980efe8d4205de8ab557b7c 20-Aug-2010 Dan Gohman <gohman@apple.com> Make outs() close its file when its stream is destructed, so that
pending output errors are detected.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111643 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
a1f89deb56eddf6a7738660063cbe7db9775b01c 20-Aug-2010 Dan Gohman <gohman@apple.com> Delete raw_stdout_ostream and raw_stderr_ostream, which are unused
outside of outs() and errs() themselves, and they don't really
need custom classes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111642 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
8df0e010469db2db5c641a50d9cfa74a5ffe68ea 20-Aug-2010 Dan Gohman <gohman@apple.com> Move raw_ostream's Error flag into raw_fd_ostream, as that's the only
class which is using it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111639 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
af0636f4d63e6ff2fd066d4594d8666459d1930d 20-Aug-2010 Dan Gohman <gohman@apple.com> Introduce a new tool_output_file class, which extends raw_ostream with
functionality that most command-line tools need: ensuring that the
output file gets deleted if the tool is interrupted or encounters an
error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
2499990699899e6da865c919fe63ef6e6c6f4a00 19-Aug-2010 Dan Gohman <gohman@apple.com> Make raw_fd_ostream consider itself the owner of STDOUT_FILENO when
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d2da32711d8780a20df4554d41754bd0bc7fa35f 18-Aug-2010 Dan Gohman <gohman@apple.com> Revert r111321. This doesn't fix a problem.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111339 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
93d81b697c054c04d1995af0393f20ce23f520d4 18-Aug-2010 Chris Lattner <sabre@nondot.org> Fix the rest of rdar://8318441 which happens when a raw_fd_ostream
(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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e211cd83f088ad462815676bc08b437c123cabed 03-Aug-2010 Chris Lattner <sabre@nondot.org> avoid undef behavior on minint, fixing PR7783.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
29269d03af6dc3feb69d0230831a059f39c03700 07-Jul-2010 Chris Lattner <sabre@nondot.org> add some triple for minix, patch by Kees van Reeuwijk from PR7582


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
52c239566e21c6f71b18ee58e82976532c5fe07f 28-May-2010 Dan Gohman <gohman@apple.com> Minor code simplification.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104959 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9ba7f657432f6be61620439b4b284dd7b9f7c353 28-May-2010 Dan Gohman <gohman@apple.com> Fix a redundant-return warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
68e947ac61dd6f3404ea3fbc3b5f0c539c694a06 18-May-2010 Dan Gohman <gohman@apple.com> Usage of O_NONBLOCK in bjam is now confirmed as a bug and fixed upstream.
Update the comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104021 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
06572793a7ae8b45ad802c04ab508a36b915d999 06-May-2010 Dan Gohman <gohman@apple.com> Handle the case where open(2) or close(2) is interrupted by a signal when
automatic syscall restarting is disabled.

Also, fix the build on systems which don't define EWOULDBLOCK.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103158 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
5fe89d0126ec215ac2a09884bfbd4dd7bf8e7d2f 06-May-2010 Dan Gohman <gohman@apple.com> Handle EWOULDBLOCK as EAGAIN. And add a comment explaining why
EAGAIN and EWOULDBLOCK are used here.

Also, handle the case where a write call is interrupted after
some data has already been written.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103153 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
66760be9195d0f19efc462c080e6d123e862d641 05-May-2010 Benjamin Kramer <benny.kra@googlemail.com> Try again if write(2) reports an recoverable error.

This should fix mysteriously crashing boost regression tests when stderr is
managed by bjam (PR7043).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
21aa347c2816aa8fc635ad05c5ab786234b32c7e 09-Apr-2010 Chris Lattner <sabre@nondot.org> add minix support, patch by Kees van Reeuwijk! PR6797


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
75361b69f3f327842b9dad69fa7f28ae3b688412 08-Apr-2010 Chris Lattner <sabre@nondot.org> rename llvm::llvm_report_error -> llvm::report_fatal_error



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
16e02097d283159c240996185a8b20f4ea46ccfc 24-Mar-2010 Dan Gohman <gohman@apple.com> Fix minor style issues.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99414 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
f071d4efeb28eb13b59af4f6e3ed0f8e40c52551 05-Mar-2010 Chris Lattner <sabre@nondot.org> add an assertion requested on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
17f26b4fd2473eb6224527105c293a73193e62e3 15-Feb-2010 Chris Lattner <sabre@nondot.org> enhance raw_svector_ostream::write_impl to work with unbuffered streams,
which may call write_impl on things that are not the usual buffer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
4f17eb87218ce4879a4ef0ed15c9ac5cf0294c2a 29-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Fix MSVC build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94809 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
f304ff63d334d80da82383e67963c0f1f73f67ed 29-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Use llvm::format instead of ftostr (which just calls sprintf).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
14ca177beba15e86ca410c9f6fc7f48ba245dba6 22-Jan-2010 Chris Lattner <sabre@nondot.org> Changes to fix buffering that I forgot to commit with previous patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94222 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d79d9dce47d505369662ae5111dba24f9ccdef68 22-Jan-2010 Chris Lattner <sabre@nondot.org> add a new MCAsmStreamer::GetCommentOS method to simplify stuff
that doesn't want to use twines.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
cd0129f5a6f0485ecac525c17a3c5dff0a19ca5f 19-Dec-2009 Chris Lattner <sabre@nondot.org> Make some methods const. The only interesting change here is that
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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
a4f8ecd85de38c14b11bbd0fc8cb9a427e9f3d75 14-Dec-2009 Dan Gohman <gohman@apple.com> Micro-optimize these functions in the case where they are not inlined.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
522b113a752a8e86932eebdc41ba07e058950e41 17-Oct-2009 Daniel Dunbar <daniel@zuster.org> Add raw_ostream::write_escaped, for writing escaped strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c8213b782735c7916cbc996c8dcdf89f9593d354 15-Sep-2009 Daniel Dunbar <daniel@zuster.org> Drop the raw_ostream required buffer size to 1.

- As best I can tell, we have eliminated all the code which used to require a
larger buffer size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81912 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ec080467f5b322441055de1f6cd4f08edc23d7df 11-Sep-2009 Dan Gohman <gohman@apple.com> Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn't
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81568 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
baa26395ccf17fc988bb9cf62d6659ca8415ece9 25-Aug-2009 Dan Gohman <gohman@apple.com> Make LLVM command-line tools overwrite their output files without -f.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
cb1308b74a64cea97fef532840452b38864bbff6 24-Aug-2009 Dan Gohman <gohman@apple.com> Correctly account for the Spaces array nul terminator. Thanks Chris!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79894 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
61ee100b97adda5dcf1c02df030e5776bb374a5a 24-Aug-2009 Dan Gohman <gohman@apple.com> raw_ostream::indent is used for PadToColumn which often prints more
than 16 spaces. Make the Spaces array wide enough to handle common cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
32e1eef631fb275c9db580d80116d1110c3ae5ee 24-Aug-2009 Chris Lattner <sabre@nondot.org> split raw_os_ostream out to its own header and implementation file. This
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
23132b188ba651ba172380cd082cc286df73d440 24-Aug-2009 Chris Lattner <sabre@nondot.org> prune the #includes in raw_ostream.h by moving a
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9441cfe4880018a85af9710ad405d4f2e522acc2 23-Aug-2009 Daniel Dunbar <daniel@zuster.org> Fix off-by-one in llvm::Format::print.
- 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. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79862 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ae60324d465496f18cdd9b5f733d305ebefb0d1e 23-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Fix windows build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79845 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
17e9edc4a7bbeadf756494cf39fcacc9eff72202 23-Aug-2009 Chris Lattner <sabre@nondot.org> Change raw_fd_ostream to take flags as an optional bitmask
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).




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79807 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32 23-Aug-2009 Chris Lattner <sabre@nondot.org> add a raw_ostream::indent method, to be used like:

OS.indent(i) << "whatever";

people seem to like indenting things ;-)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d14787e49777888eb7c685c0d5803044e7b7971a 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> Change raw_svector_ostream to reserve the input buffer if necessary, Ted was
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
425d08c654c7893782b1215f9b2715bc1d90bd07 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> Switch raw_svector_ostream to use the vector as the ostream buffer.
- This avoids unnecessary malloc/free overhead in the common case, and
unnecessary copying from the ostream buffer into the output vector.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ecbd0bc478ff3c53a4c2c3cb15098ee24c8218cb 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> Speculatively revert r79375, which may be breaking bootstrap, although in a
rather obscure way (the other candidate is r79377).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79426 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ecc67e2e1b2c13c99427510fff71d598086eb309 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Simplify write(unsigned char) to match write(const char*, unsigned).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79386 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d29d497b530a7094c808540cfdb68a7af3afd315 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Remove pointless redefinitions of tell().
- The base class implementation is correct.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
906d5b4455c6d605ab62f26d45cad2e49bf948bb 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Add the capability for subclasses to manually install an external
buffer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
3b3de924f5deccfa651b1e7db01e0be21dcaf1aa 19-Aug-2009 Daniel Dunbar <daniel@zuster.org> Speed up raw_ostream::<<(unsigned long long) for 32-bit systems by doing most
div/mods in 32-bits.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
3731604f1f73cb29a9554660b27aecba1c5c032b 18-Aug-2009 Dan Gohman <gohman@apple.com> Fix a bug in raw_ostream::write(char) introduced by the change to
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79362 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
35979c021e4789b915cd569145bd9fb9ae0d8d8b 18-Aug-2009 Daniel Dunbar <daniel@zuster.org> Revert r78924, disabling buffering defeats all the fast paths in raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b4741a722589c8ee9bfad572688ada1e8ad394fb 15-Aug-2009 Dan Gohman <gohman@apple.com> Mingw also doesn't have st_blksize.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d7be663d4f96df8b0008c2116eb5af1de47ce613 15-Aug-2009 Dan Gohman <gohman@apple.com> Always check to see if raw_fd_ostream's file descriptor is attached to
a terminal, not just when it's STDOUT_FILENO.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ec9b26100e06d566ccb4516c6fe3f2a685ecd941 14-Aug-2009 Dan Gohman <gohman@apple.com> When standard output is a terminal, set outs() to be unbuffered, to
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c6126e8f7eca8e6f089fdb0cb22c27d6e05d4a1f 13-Aug-2009 Dan Gohman <gohman@apple.com> Fix a compiler warning about comparing signed with unsigned.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
4e8e642eaa969db43b2a3ff6955abf3ca8b6789a 13-Aug-2009 Dan Gohman <gohman@apple.com> Add an assert to check copy_to_buffer's precondition.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
0ba50bb05661165f2b97f4526732f109a81100b5 13-Aug-2009 Dan Gohman <gohman@apple.com> Set raw_os_ostream, raw_string_ostream, and raw_svector_ostream to be
unbuffered. std::ostream does its own buffering, and std::string and
SmallVector both have allocation strategies intended to handle frequent
appending.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78924 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
208ec0f32eed8874074bddf97cd04f60a772198d 13-Aug-2009 Dan Gohman <gohman@apple.com> Add support to raw_ostream for sizing the buffer according to the
needs of the underlying output mechanism. raw_fd_ostream now uses
st_blksize from fstat to determine a buffer size.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
524dea4d4ca6ecafa18e1e011934a2129c770f4f 13-Aug-2009 Dan Gohman <gohman@apple.com> Move SetBufferSize and SetUnbuffered out of line.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
33e49ef5e5dc2d3e65bcd4fc1f20874bf3847829 13-Aug-2009 Dan Gohman <gohman@apple.com> Fix the buffer handling logic so that write_impl is always called with
a full buffer, rather than often being called with a
slightly-less-than-full buffer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
48018e08f0d47331e72e5dcfcde2173217091b0e 30-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add raw_ostream::write_hex


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
89ae98cb768bbfe78bc8edfd025f753f88a6df07 29-Jul-2009 Daniel Dunbar <daniel@zuster.org> Perform simplification noticed by Reid.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77477 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
78a3dd8fe141f98aaf8fbd92cfb7c97d4ddf19d6 29-Jul-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Follow the 32-bit path when printing "small" decimal numbers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
f78c835faa97a6f5c8021923c05f7514a550619f 27-Jul-2009 Dan Gohman <gohman@apple.com> Make raw_null_ostream flush its buffer in its destructor, so that
it conforms to the assertion added in r77245. This fixes a failure
in qa_override.c in clang's testsuite.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9a31254d0e51cfe08bc0e0c63ea04780cbc776f4 27-Jul-2009 Dan Gohman <gohman@apple.com> Add an assertion check to raw_ostream's destructor to verify
that the subclass hasn't left any pending data in the buffer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77245 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
34ccf037fea3d83dcb18f72496775ec4c7dcd3d3 16-Jul-2009 Daniel Dunbar <daniel@zuster.org> Add raw_null_ostream and llvm::nulls(), a raw_ostream that discards output.
- No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
ad60f660c6fd1999a3e21823128d37aca62e9285 16-Jul-2009 Dan Gohman <gohman@apple.com> Use size_t.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e87b2abe91fc44bb9875188d80e3a43a9dfc41eb 16-Jul-2009 Dan Gohman <gohman@apple.com> Change raw_ostream so that it doesn't call llvm_report_error
immediately on every output error. Instead, add a flag to
raw_ostream, and set the flag whenever an error is detected.

The flag can be queried and cleared from the public API. This
gives applications more flexibility to handling errors in
application-specific ways.

If the flag is not cleared when the raw_ostream is destructed,
llvm_report_error is called from the destructor. This ensures
that errors are not implicitly silenced, and provides
convenient default behavior for tools like llc and opt.
Clients wishing to avoid llvm_report_error calls from
raw_ostream should check for errors and clear the error flag.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
a1bdcedc3879510a874d24c450e07feb170d9cd6 15-Jul-2009 Dan Gohman <gohman@apple.com> Add a Force option to raw_fd_ostream to specify whether opening
an existing file is considered an error. Convert several tools
to use raw_fd_ostream instead of std::ostream, and to use this
new option instead of doing a manual check.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d3a974fc20ba3451d0ba331e44c09cd7d7ca7fcc 15-Jul-2009 Dan Gohman <gohman@apple.com> Check for errors on close(2) too. And lseek(2).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75793 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9f79d3ea50368dedb44e45393c7f6b6b292ff97b 15-Jul-2009 Dan Gohman <gohman@apple.com> Use 0664 instead of 0644 for the default open mode. This is
consistent with common std::ostream implmentations, and it gives
the user the option of using the umask group write bit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
579fb87ce7c7a407b76fb47da17b605d44db2d17 15-Jul-2009 Daniel Dunbar <daniel@zuster.org> Detect write failures on raw_fd_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
71847813bc419f7a0667468136a07429c6d9f164 14-Jul-2009 David Greene <greened@obbligato.org> Have asm printers use formatted_raw_ostream directly to avoid a
dynamic_cast<>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
62fe47a33755719ab9c6e8c239e0dd01fc87e6f9 10-Jul-2009 David Greene <greened@obbligato.org> Make changes suggested by Chris and eliminate newly-added raw_ostream
hooks as they're no longer needed.

The major change with this patch is to make formatted_raw_ostream usable
by any client of raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75283 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
53674361efd42f9dd7c4d293132106839ab3b893 10-Jul-2009 David Greene <greened@obbligato.org> Add some hooks that a redesigned AsmStream needs to do its job. These
allow derived classes to examine the stream buffer before it's flushed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e8ebb0fe1bba0fdff7475d98e1f8a04804b0b056 04-Jun-2009 Torok Edwin <edwintorok@gmail.com> Add support for outputting ANSI colors to raw_fd_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
8f7be4731e979255c54eb8951b7a06ed4fd6ce45 20-Apr-2009 Douglas Gregor <dgregor@apple.com> Make all raw_ostreams support the tell() function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69583 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b372c1114c1eeffbd1a3f6ddc5d33e77564bfee2 17-Mar-2009 Daniel Dunbar <daniel@zuster.org> Add BUILTIN_EXPECT Support/Compiler macro.
- Use for exceptional buffer conditions in raw_ostream:write to shave
off a cycle or two.

- Please rename if you have a better one.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
262541b074e6bbb83200ab3ce4f95ab8ab075013 17-Mar-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Put all exceptional conditions in raw_ostream::write
under a single branch.

Also, add a FIXME for formatted output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d17d74bb80d9da1712a066df40122e8584dad227 17-Mar-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Rework implementation of unbuffered streams so outputting
a single character requires only one branch to follow slow path.
- Never use a buffer when writing on an unbuffered stream.

- Move default buffer size to header.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
89a66a96fed75796bc5e079217130b62105cb438 17-Mar-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Replace flush_impl with write_impl, which takes data to
write as arguments.
- Add raw_ostream::GetNumBytesInBuffer.
- Privatize buffer pointers.
- Get rid of slow and unnecessary code for writing out large strings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67060 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
cf2a2c6a26427733f31dd539c6ee6486ea191da2 16-Mar-2009 Daniel Dunbar <daniel@zuster.org> raw_ostream: Lift out flush_nonempty.
- Flush a known non-empty buffers; enforces the interface to
flush_impl and kills off HandleFlush (which I saw no reason to be
an inline method, Chris?).

- Clarify invariant that flush_impl is only called with OutBufCur >
OutBufStart.

- This also cleary collects all places where we have to deal with the
buffer possibly not existing.

- A few more comments and fixing the unbuffered behavior remain in
this commit sequence.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b451a0cdec5a24965d122bb749671db9084b92ee 16-Mar-2009 Daniel Dunbar <daniel@zuster.org> Make raw_ostream::operator<<(const void *) fast; it doesn't matter but
it is easy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
de75d7ffcd5ed315240cfe0c52a821cf66411eda 16-Mar-2009 Daniel Dunbar <daniel@zuster.org> Add slow path for single character write, and use exclusively for
single characters writes outside of the fast path in raw_ostream.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
e77e434bc96f2935dcf337909c4009324fe24eaf 10-Mar-2009 Daniel Dunbar <daniel@zuster.org> PR3478: raw_ostream should not buffer stderr
- Add unbuffered flag to raw_ostream, forwarded by raw_fd_ostream and
used by raw_stderr_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
9c27886dd5d504f2b03c6fcb57aba23e5e44c4fa 26-Jan-2009 Ted Kremenek <kremenek@apple.com> Add method raw_fd_ostream::seek() for random access within a file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63044 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d75ba1c3573d3d5146d0abe8cb376dca94be94d5 04-Dec-2008 Ted Kremenek <kremenek@apple.com> Have raw_fd_ostream keep track of the position in the file to make tell() go faster by not requiring a flush().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60560 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
5984680c1fe7ad98381154c26f9c009e4c91b08c 26-Nov-2008 Ted Kremenek <kremenek@apple.com> Add 'tell' method to raw_fd_ostream that clients can use to query the current location in the file the stream is writing to.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60085 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
0d9eb9b4917340acbfc831890655b8e9724959f6 13-Nov-2008 Daniel Dunbar <daniel@zuster.org> Add Binary flag to raw_fd_ostream constructor.

Document raw_fd_ostream's treatment of "-".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59219 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
f61ca1eeda9cf2427047d83febe6fac1fbb1e84e 26-Oct-2008 Chris Lattner <sabre@nondot.org> fix PR2953, an off-by-one error handling formatted i/o.
Thanks to Török Edwin for the awesome reduced testcase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
43d1f02b547b146d81abeb0ed0f88628f0fdc7dc 24-Oct-2008 Ted Kremenek <kremenek@apple.com> Added raw_fd_ostream::close().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
48534b31d8bc5a68ba152fcdb905bf266def5268 21-Oct-2008 Daniel Dunbar <daniel@zuster.org> Clear raw_fd_ostream error string on success and explain behavior in
documentation.

Add C++ header marker.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
a3f343f4cd453b33214ba892bfeb58706fcf8cea 24-Aug-2008 Cedric Venet <cedric.venet@laposte.net> Updating VC++ project.
Adding one include file and correct one declaration from class to struct in order to make llvm compile on VC2005.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
78a2812538d871a62d90f53ed66d26198876d011 24-Aug-2008 Chris Lattner <sabre@nondot.org> Add raw_stream adaptors that write into an std::string and SmallVector/SmallString.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
944fac71e082cc2664cc71b4d3f6c72bab7143fb 24-Aug-2008 Chris Lattner <sabre@nondot.org> Switch the asmprinter (.ll) and all the stuff it requires over to
use raw_ostream instead of std::ostream. Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).

Other interesting changes:
1) This makes Value::print be non-virtual.
2) AP[S]Int and ConstantRange can no longer print to ostream directly,
use raw_ostream instead.
3) This fixes a bug in raw_os_ostream where it didn't flush itself
when destroyed.
4) This adds a new SDNode::print method, instead of only allowing "dump".


A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream
versions.

This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
42f77ab95a6eeeae076cbcf8a5ffa08f51df451f 23-Aug-2008 Chris Lattner <sabre@nondot.org> add #include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
097af7fc8f8688cc21453a5561347f14ca7c5771 23-Aug-2008 Chris Lattner <sabre@nondot.org> add a simple mechanism for formatted output. This gives raw_ostream's
all the power and risk of fprintf format strings. Use them like this:

OS << format("%10.4f", 42.0) << "\n" << format("%x", 42) << '\n';



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
969a46a948414734f5bc01994e54d88d153cb3fb 22-Aug-2008 Chris Lattner <sabre@nondot.org> improve support for systems that need unistd.h to get STDOUT_FILENO.
Patch contributed by Bjorn Reese!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
fd2a05332a11399e08fcd8a1e952e1fc959fac5c 22-Aug-2008 Owen Anderson <resistor@mac.com> Fix write() when the string being written is larger than the buffer. This broke various ObjC testcases
with very long symbol names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
66b17ba0d263442b8b4e82aaa08acc0df85e1787 21-Aug-2008 Owen Anderson <resistor@mac.com> Move non-trivial methods out of line to avoid code-size bloat.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
cb3718832375a581c5ea23f15918f3ea447a446c 21-Aug-2008 Owen Anderson <resistor@mac.com> Use raw_ostream throughout the AsmPrinter.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55092 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
b68dc369e06f8d1666562a70bab6bc3f7d642989 17-Aug-2008 Argyrios Kyrtzidis <akyrtzi@gmail.com> Get raw_ostream.cpp to compile on MSVC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
07f51f788e1dff2982ff0aae7c2ea3d00e48cc61 17-Aug-2008 Chris Lattner <sabre@nondot.org> add support for a cout/cerr analog (outs()/errs()) as well as
a simple adaptor class to give raw output capabilities to
something that wants to write to an ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
c52b128e1a9b1f16403dcbabf46ffc8ee1f7082e 17-Aug-2008 Chris Lattner <sabre@nondot.org> opening "-" automatically yields stdout.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
d497df5cf5d977522814acef72b8b65f1774408e 17-Aug-2008 Chris Lattner <sabre@nondot.org> rename OutputData to 'write' to match ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp
60d396262460f0613175e52c00be5e8bfb89d8fb 17-Aug-2008 Chris Lattner <sabre@nondot.org> add a new raw_ostream class which is an extremely high performance ostream that
can *only* output data (no seeking, reading, etc). This is adapted from the
clang "-E outputter", and is roughly 10% faster than stdio on darwin and 30%
(or more) faster than std::ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/raw_ostream.cpp