aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@legionlabs.com>2021-12-21 18:59:47 -0500
committerAlexandre Ganea <alexandre.ganea@legionlabs.com>2021-12-21 19:02:14 -0500
commita282ea4898efe2b2e57a93b44e90c9e497520cfb (patch)
tree57c90bccf41dd205db8b8b1aa7b187057a55a074 /llvm/lib/LTO/LTOBackend.cpp
parent5bb5142e80c9c6eb1a948d6d2ff4834e4e69741f (diff)
downloadllvm-a282ea4898efe2b2e57a93b44e90c9e497520cfb.zip
llvm-a282ea4898efe2b2e57a93b44e90c9e497520cfb.tar.gz
llvm-a282ea4898efe2b2e57a93b44e90c9e497520cfb.tar.bz2
Reland - [CodeView] Emit S_OBJNAME record
Reland integrates build fixes & further review suggestions. Thanks to @zturner for the initial S_OBJNAME patch! Differential Revision: https://reviews.llvm.org/D43002
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 15e20fec..855d0fc 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -412,6 +412,8 @@ static void codegen(const Config &Conf, TargetMachine *TM,
if (Error Err = StreamOrErr.takeError())
report_fatal_error(std::move(Err));
std::unique_ptr<CachedFileStream> &Stream = *StreamOrErr;
+ TM->Options.ObjectFilenameForDebug = Stream->ObjectPathName;
+
legacy::PassManager CodeGenPasses;
CodeGenPasses.add(
createImmutableModuleSummaryIndexWrapperPass(&CombinedIndex));