[MC][YAML] Rangify the loop. NFC

llvm-svn: 262317
This commit is contained in:
Simon Atanasyan 2016-03-01 10:11:27 +00:00
parent 3a8f7f9e31
commit 255689c3ad
1 changed files with 2 additions and 6 deletions

View File

@ -56,10 +56,6 @@ void yaml::BinaryRef::writeAsHex(raw_ostream &OS) const {
OS.write((const char *)Data.data(), Data.size());
return;
}
for (ArrayRef<uint8_t>::iterator I = Data.begin(), E = Data.end(); I != E;
++I) {
uint8_t Byte = *I;
OS << hexdigit(Byte >> 4);
OS << hexdigit(Byte & 0xf);
}
for (uint8_t Byte : Data)
OS << hexdigit(Byte >> 4) << hexdigit(Byte & 0xf);
}