[llvm] r212362 - MC: Cleanup COFFAsmParser::ParseSectionFlags
David Majnemer
david.majnemer at gmail.com
Fri Jul 4 16:15:28 PDT 2014
Author: majnemer
Date: Fri Jul 4 18:15:28 2014
New Revision: 212362
URL: http://llvm.org/viewvc/llvm-project?rev=212362&view=rev
Log:
MC: Cleanup COFFAsmParser::ParseSectionFlags
Switch a normal for-loop to a range-based for. No functionality changed.
Modified:
llvm/trunk/lib/MC/MCParser/COFFAsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/COFFAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/COFFAsmParser.cpp?rev=212362&r1=212361&r2=212362&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/COFFAsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/COFFAsmParser.cpp Fri Jul 4 18:15:28 2014
@@ -170,8 +170,8 @@ bool COFFAsmParser::ParseSectionFlags(St
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;
More information about the llvm-commits
mailing list