mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 07:21:56 +00:00
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:
parent
ccad744d4a
commit
887ab99a6e
@ -309,8 +309,8 @@ SubtargetFeatures::getFeatureBits(const StringRef CPU,
|
|||||||
/// print - Print feature string.
|
/// print - Print feature string.
|
||||||
///
|
///
|
||||||
void SubtargetFeatures::print(raw_ostream &OS) const {
|
void SubtargetFeatures::print(raw_ostream &OS) const {
|
||||||
for (size_t i = 0, e = Features.size(); i != e; ++i)
|
for (auto &F : Features)
|
||||||
OS << Features[i] << " ";
|
OS << F << " ";
|
||||||
OS << "\n";
|
OS << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user