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
This commit is contained in:
Eric Christopher 2014-05-06 21:20:29 +00:00
parent ccad744d4a
commit 887ab99a6e

View File

@ -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";
}