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:
parent
ba79dba8ed
commit
bee5f754f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue