diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-05-01 17:05:23 +0100 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2024-05-02 16:32:12 +0100 |
commit | a12622543de15df45fb9ad64e8ab723289d55169 (patch) | |
tree | 062e64705b3eed38098b07e81e81e9295c573321 /llvm/lib/Bitcode | |
parent | f5b4e20a5ab8e0d8f7e3909cfdc0c82e4cf507c3 (diff) | |
download | llvm-a12622543de15df45fb9ad64e8ab723289d55169.zip llvm-a12622543de15df45fb9ad64e8ab723289d55169.tar.gz llvm-a12622543de15df45fb9ad64e8ab723289d55169.tar.bz2 |
Reapply "[RemoveDIs] Load into new debug info format by default in LLVM (#89799)"
Fixes the broken tests in the original commit:
2f01fd99eb8c8ab3db9aba72c4f00e31e9e60a05
This will probably break some downstream tools that don't already handle
debug records. If your downstream code breaks as a result of this
change, the simplest fix is to convert the module in question to the old
debug format before you process it, using
`Module::convertFromNewDbgValues()`. For more information about how to
handle debug records or about what has changed, see the migration
document:
https://llvm.org/docs/RemoveDIsDebugInfo.html
This reverts commit 00821fed09969305b0003d3313c44d1e761a7131.
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index a0779f9..95f553b 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -4319,7 +4319,7 @@ Error BitcodeReader::parseModule(uint64_t ResumeBit, if (PreserveInputDbgFormat != cl::boolOrDefault::BOU_TRUE) { TheModule->IsNewDbgInfoFormat = UseNewDbgInfoFormat && - LoadBitcodeIntoNewDbgInfoFormat == cl::boolOrDefault::BOU_TRUE; + LoadBitcodeIntoNewDbgInfoFormat != cl::boolOrDefault::BOU_FALSE; } this->ValueTypeCallback = std::move(Callbacks.ValueType); |