Skip to content

Commit d5730fe

Browse files
svenvhsys-ce-bb
authored andcommitted
Disable new debug record format (#2554)
After LLVM commit 91446e2 ("Repply#2 "[RemoveDIs] Load into new debug info format by default in LLVM (#89799)"", 2024-05-03), we need to disable the new debug record format explicitly until we have migrated to the new format. Original commit: KhronosGroup/SPIRV-LLVM-Translator@8878e7bfddbe2cb
1 parent ce51d8c commit d5730fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm-spirv/lib/SPIRV/SPIRVReader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5052,6 +5052,10 @@ llvm::convertSpirvToLLVM(LLVMContext &C, SPIRVModule &BM,
50525052
const SPIRV::TranslatorOpts &Opts,
50535053
std::string &ErrMsg) {
50545054
std::unique_ptr<Module> M(new Module("", C));
5055+
// TODO: Migrate to the new debug record format. Until then, keep using the
5056+
// old format.
5057+
M->setNewDbgInfoFormatFlag(false);
5058+
50555059
SPIRVToLLVM BTL(M.get(), &BM);
50565060

50575061
if (!BTL.translate()) {

0 commit comments

Comments
 (0)