diff options
author | Orlando Cazalet-Hyams <orlando.hyams@sony.com> | 2024-03-22 13:52:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:52:11 +0000 |
commit | b3f98dff75469b115e3d4b1f10cbf270c8ee81af (patch) | |
tree | 08dc9799efe05bd9efd6391f57b5ae957fbb4c0e /llvm/lib/LTO/LTO.cpp | |
parent | 3b3de48fd84b8269d5f45ee0a9dc6b7448368424 (diff) | |
download | llvm-b3f98dff75469b115e3d4b1f10cbf270c8ee81af.zip llvm-b3f98dff75469b115e3d4b1f10cbf270c8ee81af.tar.gz llvm-b3f98dff75469b115e3d4b1f10cbf270c8ee81af.tar.bz2 |
[RemoveDIs] Load into new debug info format by default in llvm-lto and llvm-lto2 (#86271)
Directly load all bitcode into the new debug info format in `llvm-lto`
and `llvm-lto2`. This means that new-mode bitcode no longer round-trips
back to old-mode after parsing, and that old-mode bitcode gets
auto-upgraded to new-mode debug info (which is the current in-memory
default in LLVM).
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index b58418c..53060df 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -579,7 +579,9 @@ LTO::RegularLTOState::RegularLTOState(unsigned ParallelCodeGenParallelismLevel, const Config &Conf) : ParallelCodeGenParallelismLevel(ParallelCodeGenParallelismLevel), Ctx(Conf), CombinedModule(std::make_unique<Module>("ld-temp.o", Ctx)), - Mover(std::make_unique<IRMover>(*CombinedModule)) {} + Mover(std::make_unique<IRMover>(*CombinedModule)) { + CombinedModule->IsNewDbgInfoFormat = UseNewDbgInfoFormat; +} LTO::ThinLTOState::ThinLTOState(ThinBackend Backend) : Backend(Backend), CombinedIndex(/*HaveGVs*/ false) { |