1
0
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:
Craig Topper 2016-02-04 06:51:41 +00:00
parent befca6184f
commit a26758c5e3

View File

@ -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 << '\\' << '\\';