diff options
author | Teresa Johnson <tejohnson@google.com> | 2018-02-20 20:21:59 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2018-02-20 20:21:59 +0000 |
commit | 2c2ed3cf031e022ce939254034666b9f8a1a2f89 (patch) | |
tree | defc87cd1786d2f30306c83cf0d47efa3c0a7cb9 /lld | |
parent | a344fd3db6fa900fcca59e4fd3fb02f1bb6e00e1 (diff) | |
download | bcm5719-llvm-2c2ed3cf031e022ce939254034666b9f8a1a2f89.tar.gz bcm5719-llvm-2c2ed3cf031e022ce939254034666b9f8a1a2f89.zip |
[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
Diffstat (limited to 'lld')
-rw-r--r-- | lld/COFF/LTO.cpp | 8 | ||||
-rw-r--r-- | lld/ELF/LTO.cpp | 5 |
2 files changed, 7 insertions, 6 deletions
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<StringRef> 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<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) { 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<InputFile *> BitcodeCompiler::compile() { 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) { |