From 2c2ed3cf031e022ce939254034666b9f8a1a2f89 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Tue, 20 Feb 2018 20:21:59 +0000 Subject: [lld/LTO] Remove unused Path parameter to AddBufferFn Summary: With D43396, no clients use the Path parameter anymore. This is the lld side fix with D43400. Depends on D43396 and D43400. Reviewers: pcc Subscribers: emaste, inglorion, arichardson, llvm-commits Differential Revision: https://reviews.llvm.org/D43401 llvm-svn: 325620 --- lld/COFF/LTO.cpp | 8 ++++---- lld/ELF/LTO.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'lld') diff --git a/lld/COFF/LTO.cpp b/lld/COFF/LTO.cpp index fa2a54b6184..8a1c82c073c 100644 --- a/lld/COFF/LTO.cpp +++ b/lld/COFF/LTO.cpp @@ -127,10 +127,10 @@ std::vector BitcodeCompiler::compile() { // specified, configure LTO to use it as the cache directory. lto::NativeObjectCache Cache; if (!Config->LTOCache.empty()) - Cache = check( - lto::localCache(Config->LTOCache, - [&](size_t Task, std::unique_ptr MB, - StringRef Path) { Files[Task] = std::move(MB); })); + Cache = check(lto::localCache( + Config->LTOCache, [&](size_t Task, std::unique_ptr MB) { + Files[Task] = std::move(MB); + })); checkError(LTOObj->run( [&](size_t Task) { diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp index d5c4d80cd5b..f3d68962dc1 100644 --- a/lld/ELF/LTO.cpp +++ b/lld/ELF/LTO.cpp @@ -190,8 +190,9 @@ std::vector BitcodeCompiler::compile() { if (!Config->ThinLTOCacheDir.empty()) Cache = check( lto::localCache(Config->ThinLTOCacheDir, - [&](size_t Task, std::unique_ptr MB, - StringRef Path) { Files[Task] = std::move(MB); })); + [&](size_t Task, std::unique_ptr MB) { + Files[Task] = std::move(MB); + })); checkError(LTOObj->run( [&](size_t Task) { -- cgit v1.2.1