diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-06 21:20:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-06 21:20:29 +0000 |
commit | 9c928478f48384ad641a3c895856fbcef0c34f22 (patch) | |
tree | 72448a98705a65d11fe39cbb0de267cb5c7d8735 /llvm/lib/MC/SubtargetFeature.cpp | |
parent | 9dabbf62281cc84f33f248a9f77d1c14c591baea (diff) | |
download | bcm5719-llvm-9c928478f48384ad641a3c895856fbcef0c34f22.tar.gz bcm5719-llvm-9c928478f48384ad641a3c895856fbcef0c34f22.zip |
Use a range based for loop for the SubtargetFeatures print function.
llvm-svn: 208132
Diffstat (limited to 'llvm/lib/MC/SubtargetFeature.cpp')
-rw-r--r-- | llvm/lib/MC/SubtargetFeature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/SubtargetFeature.cpp b/llvm/lib/MC/SubtargetFeature.cpp index 844df0aed10..3be6d9641b3 100644 --- a/llvm/lib/MC/SubtargetFeature.cpp +++ b/llvm/lib/MC/SubtargetFeature.cpp @@ -309,8 +309,8 @@ SubtargetFeatures::getFeatureBits(const StringRef CPU, /// print - Print feature string. /// void SubtargetFeatures::print(raw_ostream &OS) const { - for (size_t i = 0, e = Features.size(); i != e; ++i) - OS << Features[i] << " "; + for (auto &F : Features) + OS << F << " "; OS << "\n"; } |