summaryrefslogtreecommitdiff
path: root/lld/wasm
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-11-22 10:54:46 -0800
committerZequan Wu <zequanwu@google.com>2022-11-22 10:55:05 -0800
commiteef5405f74ae208e3e2eb7daacecac923d7338f2 (patch)
tree26014108b80023dc35bfbdfb1b33a1e2d890e16a /lld/wasm
parent0ffcd243a42bff13966e455582d2db6c337628a2 (diff)
downloadllvm-eef5405f74ae208e3e2eb7daacecac923d7338f2.tar.gz
Revert "[LTO][COFF] Use bitcode file names in lto native object file names."
This reverts commit 531ed6d5aa65f41c6dfe2e74905d5c6c88fc95a7.
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 30243c3d0518..ac4cfb6f2503 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, const Twine &moduleName,
- std::unique_ptr<MemoryBuffer> mb) {
- files[task] = std::move(mb);
- }));
+ cache =
+ check(localCache("ThinLTO", "Thin", config->thinLTOCacheDir,
+ [&](size_t task, std::unique_ptr<MemoryBuffer> mb) {
+ files[task] = std::move(mb);
+ }));
checkError(ltoObj->run(
- [&](size_t task, const Twine &moduleName) {
+ [&](size_t task) {
return std::make_unique<CachedFileStream>(
std::make_unique<raw_svector_ostream>(buf[task]));
},