mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
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:
parent
0560884c22
commit
b472eb71aa
@ -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…
x
Reference in New Issue
Block a user