llvm-project/llvm
Duncan P. N. Exon Smith dcd6162b7f utils: Remove some no-op raw_string_ostream flush calls, NFC
Since 65b13610a5, raw_string_ostream has
been unbuffered by default. Based on an audit of llvm/utils/, this
commit removes every call to `raw_string_ostream::flush()` and any call
to `raw_string_ostream::str()` whose result is ignored or that doesn't
help with clarity.

I left behind a few calls to `str()`. In these cases, the underlying
std::string was declared pretty far away and never used again, whereas
stream recently had its last write. The code is easier to read as-is;
the no-op call to `flush()` inside `str()` isn't harmful, and when
https://reviews.llvm.org/D115421 lands it'll be gone anyway.
2021-12-10 11:26:08 -08:00
..
benchmarks
bindings
cmake [CMake] Installable find modules for terminfo and libffi 2021-12-05 14:46:23 -05:00
docs [llvm-readobj] Add JSONScopedPrinter to llvm-readelf 2021-12-10 18:57:34 +00:00
examples [ORC] Add a MaterializationUnit::Interface struct. 2021-12-08 13:41:15 +11:00
include [NFC][MLGO] Factor ModelUnderTrainingRunner for reuse 2021-12-10 11:24:15 -08:00
lib [NFC][MLGO] Factor ModelUnderTrainingRunner for reuse 2021-12-10 11:24:15 -08:00
projects
resources
runtimes
test [llvm-readobj] Add JSONScopedPrinter to llvm-readelf 2021-12-10 18:57:34 +00:00
tools [llvm-readobj] Add JSONScopedPrinter to llvm-readelf 2021-12-10 18:57:34 +00:00
unittests [llvm] Add JSONScopedPrinter class 2021-12-10 18:57:33 +00:00
utils utils: Remove some no-op raw_string_ostream flush calls, NFC 2021-12-10 11:26:08 -08:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Re-Reland "[benchmarks] Move libcxx's fork of google/benchmark and llvm/utils'" 2021-12-07 17:10:41 -08:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.