Author: erichkeane Date: Fri Oct 27 11:45:06 2017 New Revision: 316784 URL: http://llvm.org/viewvc/llvm-project?rev=316784&view=rev Log: Replace a few usages of llvm::join with range-version[NFC]
I noticed a few usages of llvm::join that were using begin/end rather than just the range version. This patch just replaces those. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=316784&r1=316783&r2=316784&view=diff ============================================================================== --- cfe/trunk/lib/CodeGen/CGCall.cpp (original) +++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Oct 27 11:45:06 2017 @@ -1742,7 +1742,7 @@ void CodeGenModule::ConstructDefaultFnAt std::vector<std::string> &Recips = getTarget().getTargetOpts().Reciprocals; if (!Recips.empty()) FuncAttrs.addAttribute("reciprocal-estimates", - llvm::join(Recips.begin(), Recips.end(), ",")); + llvm::join(Recips, ",")); if (CodeGenOpts.StackRealignment) FuncAttrs.addAttribute("stackrealign"); @@ -1894,7 +1894,7 @@ void CodeGenModule::ConstructAttributeLi std::sort(Features.begin(), Features.end()); FuncAttrs.addAttribute( "target-features", - llvm::join(Features.begin(), Features.end(), ",")); + llvm::join(Features, ",")); } } else { // Otherwise just add the existing target cpu and target features to the @@ -1906,7 +1906,7 @@ void CodeGenModule::ConstructAttributeLi std::sort(Features.begin(), Features.end()); FuncAttrs.addAttribute( "target-features", - llvm::join(Features.begin(), Features.end(), ",")); + llvm::join(Features, ",")); } } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits