diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-12 11:51:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 11:51:58 +0100 |
commit | 97ac6483aaead89897d9bda8a12f1f4c11fad621 (patch) | |
tree | faad9132e247263838004084e3202ba8da29a678 /llvm/lib/IR/Verifier.cpp | |
parent | fe28ea37b640ea4842583df3b89e08877220fb8e (diff) | |
download | llvm-97ac6483aaead89897d9bda8a12f1f4c11fad621.zip llvm-97ac6483aaead89897d9bda8a12f1f4c11fad621.tar.gz llvm-97ac6483aaead89897d9bda8a12f1f4c11fad621.tar.bz2 |
[DebugInfo][RemoveDIs] Delete debug-info-format flag (#143746)
This flag was used to let us incrementally introduce debug records
into LLVM, however everything is now using records. It serves no
purpose now, so delete it.
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 9ec94a8..1f1041b 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -2878,11 +2878,6 @@ void Verifier::visitFunction(const Function &F) { Check(verifyAttributeCount(Attrs, FT->getNumParams()), "Attribute after last parameter!", &F); - CheckDI(F.IsNewDbgInfoFormat == F.getParent()->IsNewDbgInfoFormat, - "Function debug format should match parent module", &F, - F.IsNewDbgInfoFormat, F.getParent(), - F.getParent()->IsNewDbgInfoFormat); - bool IsIntrinsic = F.isIntrinsic(); // Check function attributes. @@ -3233,15 +3228,9 @@ void Verifier::visitBasicBlock(BasicBlock &BB) { Check(I.getParent() == &BB, "Instruction has bogus parent pointer!"); } - CheckDI(BB.IsNewDbgInfoFormat == BB.getParent()->IsNewDbgInfoFormat, - "BB debug format should match parent function", &BB, - BB.IsNewDbgInfoFormat, BB.getParent(), - BB.getParent()->IsNewDbgInfoFormat); - // Confirm that no issues arise from the debug program. - if (BB.IsNewDbgInfoFormat) - CheckDI(!BB.getTrailingDbgRecords(), "Basic Block has trailing DbgRecords!", - &BB); + CheckDI(!BB.getTrailingDbgRecords(), "Basic Block has trailing DbgRecords!", + &BB); } void Verifier::visitTerminator(Instruction &I) { |