summaryrefslogtreecommitdiff
path: root/lld/wasm
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-11-22 11:00:56 -0800
committerZequan Wu <zequanwu@google.com>2022-11-22 11:26:18 -0800
commit387620aa8cea33174b6c1fb80c1af713fee732ac (patch)
tree5f01d3a1e28f17a16eaa8130dc0620c5e54c5ae9 /lld/wasm
parent48bb1471122d156bc0c4feaabc32de4487024ca5 (diff)
downloadllvm-387620aa8cea33174b6c1fb80c1af713fee732ac.tar.gz
Reland "[LTO][COFF] Use bitcode file names in lto native object file names."
This reverts commit eef5405f74ae208e3e2eb7daacecac923d7338f2.
Diffstat (limited to 'lld/wasm')
-rw-r--r--lld/wasm/LTO.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lld/wasm/LTO.cpp b/lld/wasm/LTO.cpp
index ac4cfb6f2503..30243c3d0518 100644
--- a/lld/wasm/LTO.cpp
+++ b/lld/wasm/LTO.cpp
@@ -128,14 +128,14 @@ std::vector<StringRef> BitcodeCompiler::compile() {
// specified, configure LTO to use it as the cache directory.
FileCache cache;
if (!config->thinLTOCacheDir.empty())
- cache =
- check(localCache("ThinLTO", "Thin", config->thinLTOCacheDir,
- [&](size_t task, std::unique_ptr<MemoryBuffer> mb) {
- files[task] = std::move(mb);
- }));
+ cache = check(localCache("ThinLTO", "Thin", config->thinLTOCacheDir,
+ [&](size_t task, const Twine &moduleName,
+ std::unique_ptr<MemoryBuffer> mb) {
+ files[task] = std::move(mb);
+ }));
checkError(ltoObj->run(
- [&](size_t task) {
+ [&](size_t task, const Twine &moduleName) {
return std::make_unique<CachedFileStream>(
std::make_unique<raw_svector_ostream>(buf[task]));
},