aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-11-22 13:46:42 -0800
committerZequan Wu <zequanwu@google.com>2022-11-22 13:46:42 -0800
commit84be92d26fcb1ddad533c0c614a79a81c59f795d (patch)
tree78c1108bb8ff6365fe2f0f971d7004e900b3e39b /llvm/lib/LTO/LTOBackend.cpp
parent10a43c4641c20e0a50edc0ff99915c837a507cc1 (diff)
downloadllvm-84be92d26fcb1ddad533c0c614a79a81c59f795d.zip
llvm-84be92d26fcb1ddad533c0c614a79a81c59f795d.tar.gz
llvm-84be92d26fcb1ddad533c0c614a79a81c59f795d.tar.bz2
Reland "[LTO][COFF] Use bitcode file names in lto native object file names."
This reverts commit 34108082947c964ae9bbfcd9808f2fd31c0d672f with fixes.
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 2760f4d..5a8f60d 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -391,7 +391,8 @@ static void codegen(const Config &Conf, TargetMachine *TM,
EC.message());
}
- Expected<std::unique_ptr<CachedFileStream>> StreamOrErr = AddStream(Task);
+ Expected<std::unique_ptr<CachedFileStream>> StreamOrErr =
+ AddStream(Task, Mod.getModuleIdentifier());
if (Error Err = StreamOrErr.takeError())
report_fatal_error(std::move(Err));
std::unique_ptr<CachedFileStream> &Stream = *StreamOrErr;