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.

llvm-svn: 316784
This commit is contained in:
Erich Keane 2017-10-27 18:45:06 +00:00
parent cf8807c931
commit 857ac594b7
1 changed files with 3 additions and 3 deletions

View File

@ -1742,7 +1742,7 @@ void CodeGenModule::ConstructDefaultFnAttrList(StringRef Name, bool HasOptnone,
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::ConstructAttributeList(
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::ConstructAttributeList(
std::sort(Features.begin(), Features.end());
FuncAttrs.addAttribute(
"target-features",
llvm::join(Features.begin(), Features.end(), ","));
llvm::join(Features, ","));
}
}
}