r244290 - Range-forify a loop, delete trailing whitespace. NFC
Douglas Katzman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 6 15:36:24 PDT 2015
Author: dougk
Date: Thu Aug 6 17:36:24 2015
New Revision: 244290
URL: http://llvm.org/viewvc/llvm-project?rev=244290&view=rev
Log:
Range-forify a loop, delete trailing whitespace. NFC
Modified:
cfe/trunk/lib/Driver/ToolChain.cpp
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=244290&r1=244289&r2=244290&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Thu Aug 6 17:36:24 2015
@@ -313,7 +313,7 @@ std::string ToolChain::ComputeLLVMTriple
std::string CPU = Triple.isOSBinFormatMachO()
? tools::arm::getARMCPUForMArch(MArch, Triple)
: tools::arm::getARMTargetCPU(MCPU, MArch, Triple);
- StringRef Suffix =
+ StringRef Suffix =
tools::arm::getLLVMArchSuffixForARM(CPU,
tools::arm::getARMArch(MArch, Triple));
bool ThumbDefault = Suffix.startswith("v6m") || Suffix.startswith("v7m") ||
@@ -344,7 +344,7 @@ std::string ToolChain::ComputeLLVMTriple
}
}
-std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args,
+std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args,
types::ID InputType) const {
return ComputeLLVMTriple(Args, InputType);
}
@@ -424,10 +424,9 @@ void ToolChain::addExternCSystemIncludeI
/*static*/ void ToolChain::addSystemIncludes(const ArgList &DriverArgs,
ArgStringList &CC1Args,
ArrayRef<StringRef> Paths) {
- for (ArrayRef<StringRef>::iterator I = Paths.begin(), E = Paths.end();
- I != E; ++I) {
+ for (StringRef Path : Paths) {
CC1Args.push_back("-internal-isystem");
- CC1Args.push_back(DriverArgs.MakeArgString(*I));
+ CC1Args.push_back(DriverArgs.MakeArgString(Path));
}
}
@@ -496,4 +495,3 @@ SanitizerMask ToolChain::getSupportedSan
return (Undefined & ~Vptr & ~Function) | CFI | CFICastStrict |
UnsignedIntegerOverflow | LocalBounds;
}
-
More information about the cfe-commits
mailing list