summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-01-13 14:39:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-01-13 14:39:03 +0000
commit061f4a5fe6c60116831fa18e7db7faa24c7bd1e2 (patch)
tree230b3008532884534ba5398c518949a2e906a27b /llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
parent2178370e534d12d24ed505610b7569e12de5e3ad (diff)
downloadbcm5719-llvm-061f4a5fe6c60116831fa18e7db7faa24c7bd1e2.tar.gz
bcm5719-llvm-061f4a5fe6c60116831fa18e7db7faa24c7bd1e2.zip
Apply clang-tidy's performance-unnecessary-value-param to LLVM.
With some minor manual fixes for using function_ref instead of std::function. No functional change intended. llvm-svn: 291904
Diffstat (limited to 'llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
index 3680cfc813a..30d91095c70 100644
--- a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+++ b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
@@ -194,7 +194,7 @@ void simplifyExternals(Module &M) {
}
void filterModule(
- Module *M, std::function<bool(const GlobalValue *)> ShouldKeepDefinition) {
+ Module *M, function_ref<bool(const GlobalValue *)> ShouldKeepDefinition) {
for (Function &F : *M) {
if (ShouldKeepDefinition(&F))
continue;
OpenPOWER on IntegriCloud