diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2016-03-01 10:11:27 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2016-03-01 10:11:27 +0000 |
commit | 255689c3ad4feb4af32aea0a50ab881f472a66e9 (patch) | |
tree | 0d7d2ba04bc120f8d2f7dd91297ec6eac7adef75 /llvm/lib/MC/YAML.cpp | |
parent | 3a8f7f9e31dec87ccdc2ca83486e6c8a5c295e9d (diff) | |
download | bcm5719-llvm-255689c3ad4feb4af32aea0a50ab881f472a66e9.tar.gz bcm5719-llvm-255689c3ad4feb4af32aea0a50ab881f472a66e9.zip |
[MC][YAML] Rangify the loop. NFC
llvm-svn: 262317
Diffstat (limited to 'llvm/lib/MC/YAML.cpp')
-rw-r--r-- | llvm/lib/MC/YAML.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/MC/YAML.cpp b/llvm/lib/MC/YAML.cpp index 067e91a26d3..45db5c302ee 100644 --- a/llvm/lib/MC/YAML.cpp +++ b/llvm/lib/MC/YAML.cpp @@ -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); } |