aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-as/llvm-as.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-05-01 16:56:34 +0100
committerStephen Tozer <stephen.tozer@sony.com>2024-05-01 16:56:34 +0100
commit00821fed09969305b0003d3313c44d1e761a7131 (patch)
tree8d28038f25f4898cbc40a224b27f423d76e610b3 /llvm/tools/llvm-as/llvm-as.cpp
parent2f01fd99eb8c8ab3db9aba72c4f00e31e9e60a05 (diff)
downloadllvm-00821fed09969305b0003d3313c44d1e761a7131.zip
llvm-00821fed09969305b0003d3313c44d1e761a7131.tar.gz
llvm-00821fed09969305b0003d3313c44d1e761a7131.tar.bz2
Revert "[RemoveDIs] Load into new debug info format by default in LLVM (#89799)"
A unit test was broken by the above commit: https://lab.llvm.org/buildbot/#/builders/139/builds/64627 This reverts commit 2f01fd99eb8c8ab3db9aba72c4f00e31e9e60a05.
Diffstat (limited to 'llvm/tools/llvm-as/llvm-as.cpp')
-rw-r--r--llvm/tools/llvm-as/llvm-as.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp
index 0958e16..e48e3f4 100644
--- a/llvm/tools/llvm-as/llvm-as.cpp
+++ b/llvm/tools/llvm-as/llvm-as.cpp
@@ -142,10 +142,11 @@ int main(int argc, char **argv) {
}
// Convert to new debug format if requested.
- M->setIsNewDbgInfoFormat(UseNewDbgInfoFormat &&
- WriteNewDbgInfoFormatToBitcode);
- if (M->IsNewDbgInfoFormat)
+ assert(!M->IsNewDbgInfoFormat && "Unexpectedly in new debug mode");
+ if (UseNewDbgInfoFormat && WriteNewDbgInfoFormatToBitcode) {
+ M->convertToNewDbgValues();
M->removeDebugIntrinsicDeclarations();
+ }
std::unique_ptr<ModuleSummaryIndex> Index = std::move(ModuleAndIndex.Index);