r239064 - C++11 rangify for loop.
Yaron Keren
yaron.keren at gmail.com
Thu Jun 4 11:33:04 PDT 2015
Author: yrnkrn
Date: Thu Jun 4 13:33:04 2015
New Revision: 239064
URL: http://llvm.org/viewvc/llvm-project?rev=239064&view=rev
Log:
C++11 rangify for loop.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=239064&r1=239063&r2=239064&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Thu Jun 4 13:33:04 2015
@@ -453,10 +453,8 @@ TargetMachine *EmitAssemblyHelper::Creat
std::string FeaturesStr;
if (!TargetOpts.Features.empty()) {
SubtargetFeatures Features;
- for (std::vector<std::string>::const_iterator
- it = TargetOpts.Features.begin(),
- ie = TargetOpts.Features.end(); it != ie; ++it)
- Features.AddFeature(*it);
+ for (const std::string &Feature : TargetOpts.Features)
+ Features.AddFeature(Feature);
FeaturesStr = Features.getString();
}
More information about the cfe-commits
mailing list