mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 18:02:43 +00:00
[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
This commit is contained in:
parent
a344fd3db6
commit
2c2ed3cf03
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user