diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-08-09 16:25:43 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-08-09 16:25:43 +0000 |
| commit | d7cda0680a0c0f1ef402f302df22049f8062236e (patch) | |
| tree | a51960bcc716cfec1c018f99edcb059a28d4c58f /lldb/tools/debugserver/scripts | |
| parent | c65848caa59147cb51e913b5e70de609f5e8a171 (diff) | |
| download | bcm5719-llvm-d7cda0680a0c0f1ef402f302df22049f8062236e.tar.gz bcm5719-llvm-d7cda0680a0c0f1ef402f302df22049f8062236e.zip | |
Partial implementation of N3665. This paper was not voted into the C++1y draft. However I was looking at it and with some experimentation realized that I could partially implement it, and at the same time offer a performance optimization to cout. I simply added an xsputn override to the cout filebuf. The override does nothing special at all if there is a non-trivial codecvt installed. However if the codecvt returns true for always_noconv(), then this function can dump an entire string to fwrite, instead of doing it a character at a time under overflow(). This just makes sense. I stopped short of a full implementation of N3665 because in order to do so, xsputn would have to allocate a buffer when always_noconv() returned false, and I don't want to go to that expense.
llvm-svn: 188077
Diffstat (limited to 'lldb/tools/debugserver/scripts')
0 files changed, 0 insertions, 0 deletions

