mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
DebugInfo: Remove DIDescriptor::Verify()
Remove `DIDescriptor::Verify()` and the `Verify()`s from subclasses. They had already been gutted, and just did an `isa<>` check. In a couple of cases I've temporarily dropped the check entirely, but subsequent commits are going to disallow conversions to the `DIDescriptor`s directly from `MDNode`, so the checks will come back in another form soon enough. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -174,7 +174,7 @@ public:
|
||||
|
||||
const MachineInstrBuilder &addMetadata(const MDNode *MD) const {
|
||||
MI->addOperand(*MF, MachineOperand::CreateMetadata(MD));
|
||||
assert((MI->isDebugValue() ? MI->getDebugVariable().Verify() : true) &&
|
||||
assert((MI->isDebugValue() ? MI->getDebugVariable().isVariable() : true) &&
|
||||
"first MDNode argument of a DBG_VALUE not a DIVariable");
|
||||
return *this;
|
||||
}
|
||||
@@ -355,7 +355,7 @@ inline MachineInstrBuilder BuildMI(MachineFunction &MF, DebugLoc DL,
|
||||
const MCInstrDesc &MCID, bool IsIndirect,
|
||||
unsigned Reg, unsigned Offset,
|
||||
const MDNode *Variable, const MDNode *Expr) {
|
||||
assert(DIVariable(Variable).Verify() && "not a DIVariable");
|
||||
assert(isa<MDLocalVariable>(Variable) && "not a DIVariable");
|
||||
assert(DIExpression(Expr)->isValid() && "not a DIExpression");
|
||||
assert(DIVariable(Variable)->isValidLocationForIntrinsic(DL) &&
|
||||
"Expected inlined-at fields to agree");
|
||||
@@ -384,7 +384,7 @@ inline MachineInstrBuilder BuildMI(MachineBasicBlock &BB,
|
||||
const MCInstrDesc &MCID, bool IsIndirect,
|
||||
unsigned Reg, unsigned Offset,
|
||||
const MDNode *Variable, const MDNode *Expr) {
|
||||
assert(DIVariable(Variable).Verify() && "not a DIVariable");
|
||||
assert(isa<MDLocalVariable>(Variable) && "not a DIVariable");
|
||||
assert(DIExpression(Expr)->isValid() && "not a DIExpression");
|
||||
MachineFunction &MF = *BB.getParent();
|
||||
MachineInstr *MI =
|
||||
|
Reference in New Issue
Block a user