projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use a range based for loop for the SubtargetFeatures print function.
[oota-llvm.git]
/
lib
/
MC
/
SubtargetFeature.cpp
diff --git
a/lib/MC/SubtargetFeature.cpp
b/lib/MC/SubtargetFeature.cpp
index 844df0aed109a4145bd3a63451e88832c153b84c..3be6d9641b3653061989151d451080de410e9f91 100644
(file)
--- a/
lib/MC/SubtargetFeature.cpp
+++ b/
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 << F
eatures[i] << "
";
+ for (
auto &F : Features
)
+ OS << F
<< "
";
OS << "\n";
}