[PATCH] D43401: [lld/LTO] Remove unused Path parameter to AddBufferFn
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 11:26:54 PST 2018
tejohnson created this revision.
tejohnson added a reviewer: pcc.
Herald added subscribers: arichardson, inglorion, emaste.
With https://reviews.llvm.org/D43396, no clients use the Path parameter anymore.
This is the lld side fix with https://reviews.llvm.org/D43400.
Depends on https://reviews.llvm.org/D43396 and https://reviews.llvm.org/D43400.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D43401
Files:
COFF/LTO.cpp
ELF/LTO.cpp
Index: ELF/LTO.cpp
===================================================================
--- ELF/LTO.cpp
+++ ELF/LTO.cpp
@@ -190,8 +190,9 @@
if (!Config->ThinLTOCacheDir.empty())
Cache = check(
lto::localCache(Config->ThinLTOCacheDir,
- [&](size_t Task, std::unique_ptr<MemoryBuffer> MB,
- StringRef Path) { Files[Task] = std::move(MB); }));
+ [&](size_t Task, std::unique_ptr<MemoryBuffer> MB) {
+ Files[Task] = std::move(MB);
+ }));
checkError(LTOObj->run(
[&](size_t Task) {
Index: COFF/LTO.cpp
===================================================================
--- COFF/LTO.cpp
+++ COFF/LTO.cpp
@@ -127,10 +127,10 @@
// 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<MemoryBuffer> MB,
- StringRef Path) { Files[Task] = std::move(MB); }));
+ Cache = check(lto::localCache(
+ Config->LTOCache, [&](size_t Task, std::unique_ptr<MemoryBuffer> MB) {
+ Files[Task] = std::move(MB);
+ }));
checkError(LTOObj->run(
[&](size_t Task) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43401.134665.patch
Type: text/x-patch
Size: 1347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/ce71f8bc/attachment.bin>
More information about the llvm-commits
mailing list