mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
[MC][YAML] Rangify the loop. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef35f84f09
commit
940260b1e9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user