diff options
author | Max Graey <maxgraey@gmail.com> | 2022-07-29 07:25:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 04:25:43 +0000 |
commit | 078f7b9bf57426cca2db96edbf213765354fc57a (patch) | |
tree | 11aac0d5014ce7230d9c522ce1be6d3807154ae1 /src/compiler-support.h | |
parent | d02c260619e5d068b6893d4948de0487d0f1f66d (diff) | |
download | binaryen-078f7b9bf57426cca2db96edbf213765354fc57a.tar.gz binaryen-078f7b9bf57426cca2db96edbf213765354fc57a.tar.bz2 binaryen-078f7b9bf57426cca2db96edbf213765354fc57a.zip |
Refactor doIndent (#4847)
Refactor everywhere from:
```c++
for (size_t i = 0; i < indent; i++) {
o << ' ';
}
```
to:
```c++
o << std::string(indent, ' ');
```
### Motivation
It is much simpler and should produce smaller code.See godbolt:
https://godbolt.org/z/KMYMdn7z5
Diffstat (limited to 'src/compiler-support.h')
0 files changed, 0 insertions, 0 deletions