diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-13 15:13:35 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-08-13 15:13:35 +0000 |
commit | 2c6cbc8bb26aa20ad0861f066ecba8d773b17726 (patch) | |
tree | 8e1539ed7b4200fade11fec3017db7a2dd3cc33b /llvm/unittests/Demangle/PartialDemangleTest.cpp | |
parent | cce15c76d3fc2c604827c25b50d4ccd6bd68be73 (diff) | |
download | bcm5719-llvm-2c6cbc8bb26aa20ad0861f066ecba8d773b17726.tar.gz bcm5719-llvm-2c6cbc8bb26aa20ad0861f066ecba8d773b17726.zip |
[Tablegen] Replace uses of formatted_raw_ostream with raw_ostream in the predicate expander. NFCI
This is a follow-up of r339552.
As pointed out by Craig in D50566, we don't need a formatted_raw_ostream to
indent strings. We can use instead raw_ostream::indent().
Internally, class PredicateExpander already keeps track of the current
indentation level. Also, the grammar for predicates is well parenthesized, and
therefore we don't need to use a formatted_raw_ostream to continuously track the
column number. Instead we can safely replace all the uses of
formatted_raw_ostream::PadToColumn() with uses of raw_ostream::indent().
By replacing formatted_raw_ostream with a simpler raw_ostream, we also avoid the
implicit check on the newline character on every print to stream.
No functional change intended.
llvm-svn: 339577
Diffstat (limited to 'llvm/unittests/Demangle/PartialDemangleTest.cpp')
0 files changed, 0 insertions, 0 deletions