MC: Cleanup COFFAsmParser::ParseSectionFlags

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

llvm-svn: 212362
This commit is contained in:
David Majnemer 2014-07-04 23:15:28 +00:00
parent ba79dba8ed
commit bee5f754f2
1 changed files with 2 additions and 2 deletions

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;