Skip to content

Commit 887ab99

Browse files
committed
Use a range based for loop for the SubtargetFeatures print function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208132 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ccad744 commit 887ab99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MC/SubtargetFeature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ SubtargetFeatures::getFeatureBits(const StringRef CPU,
309309
/// print - Print feature string.
310310
///
311311
void SubtargetFeatures::print(raw_ostream &OS) const {
312-
for (size_t i = 0, e = Features.size(); i != e; ++i)
313-
OS << Features[i] << " ";
312+
for (auto &F : Features)
313+
OS << F << " ";
314314
OS << "\n";
315315
}
316316

0 commit comments

Comments
 (0)