mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[Support] Use range-based for loop. NFC
llvm-svn: 259763
This commit is contained in:
parent
befca6184f
commit
a26758c5e3
@ -181,9 +181,7 @@ raw_ostream &raw_ostream::write_hex(unsigned long long N) {
|
||||
|
||||
raw_ostream &raw_ostream::write_escaped(StringRef Str,
|
||||
bool UseHexEscapes) {
|
||||
for (unsigned i = 0, e = Str.size(); i != e; ++i) {
|
||||
unsigned char c = Str[i];
|
||||
|
||||
for (unsigned char c : Str) {
|
||||
switch (c) {
|
||||
case '\\':
|
||||
*this << '\\' << '\\';
|
||||
|
Loading…
x
Reference in New Issue
Block a user