MC: Cleanup COFFAsmParser::ParseSectionFlags

Switch a normal for-loop to a range-based for. No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Majnemer 2014-07-04 23:15:28 +00:00
parent 0560884c22
commit b472eb71aa

View File

@ -170,8 +170,8 @@ bool COFFAsmParser::ParseSectionFlags(StringRef FlagsString, unsigned* Flags) {
bool ReadOnlyRemoved = false;
unsigned SecFlags = None;
for (unsigned i = 0; i < FlagsString.size(); ++i) {
switch (FlagsString[i]) {
for (char FlagChar : FlagsString) {
switch (FlagChar) {
case 'a':
// Ignored.
break;