mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-03 12:18:00 +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:
@@ -421,7 +421,6 @@ DwarfCompileUnit &DwarfDebug::constructDwarfCompileUnit(DICompileUnit DIUnit) {
|
||||
void DwarfDebug::constructAndAddImportedEntityDIE(DwarfCompileUnit &TheCU,
|
||||
const MDNode *N) {
|
||||
DIImportedEntity Module(N);
|
||||
assert(Module.Verify());
|
||||
if (DIE *D = TheCU.getOrCreateContextDIE(Module.getContext()))
|
||||
D->addChild(TheCU.constructImportedEntityDIE(Module));
|
||||
}
|
||||
@@ -1499,9 +1498,10 @@ static void emitDebugLocValue(const AsmPrinter &AP,
|
||||
Streamer);
|
||||
// Regular entry.
|
||||
if (Value.isInt()) {
|
||||
DIBasicType BTy(DV.getType().resolve(TypeIdentifierMap));
|
||||
if (BTy.Verify() && (BTy.getEncoding() == dwarf::DW_ATE_signed ||
|
||||
BTy.getEncoding() == dwarf::DW_ATE_signed_char))
|
||||
MDType *T = DV.getType().resolve(TypeIdentifierMap);
|
||||
auto *B = dyn_cast<MDBasicType>(T);
|
||||
if (B && (B->getEncoding() == dwarf::DW_ATE_signed ||
|
||||
B->getEncoding() == dwarf::DW_ATE_signed_char))
|
||||
DwarfExpr.AddSignedConstant(Value.getInt());
|
||||
else
|
||||
DwarfExpr.AddUnsignedConstant(Value.getInt());
|
||||
|
Reference in New Issue
Block a user