aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-02-26 18:49:18 +0000
committerStephen Tozer <stephen.tozer@sony.com>2024-02-26 18:49:18 +0000
commitdc06d75ab27b4dcae2940fc386fadd06f70faffe (patch)
tree9df281736999b35da661e6d9e1718dd5f96e388a /llvm/lib/IR/BasicBlock.cpp
parentf1bb88bee248fb30e3145a2a19373233b7a59882 (diff)
downloadllvm-dc06d75ab27b4dcae2940fc386fadd06f70faffe.zip
llvm-dc06d75ab27b4dcae2940fc386fadd06f70faffe.tar.gz
llvm-dc06d75ab27b4dcae2940fc386fadd06f70faffe.tar.bz2
Revert "[RemoveDIs] Print non-intrinsic debug info in textual IR output (#79281)"
Reverted due to failures on buildbots, where a new cl flag was placed in the wrong file, resulting in link errors. https://lab.llvm.org/buildbot/#/builders/198/builds/8548 This reverts commit 0b398256b3f72204ad1f7c625efe4990204e898a.
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index c110c4c..6ea876f 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -61,6 +61,10 @@ DPMarker *BasicBlock::createMarker(InstListType::iterator It) {
}
void BasicBlock::convertToNewDbgValues() {
+ // Is the command line option set?
+ if (!UseNewDbgInfoFormat)
+ return;
+
IsNewDbgInfoFormat = true;
// Iterate over all instructions in the instruction list, collecting dbg.value