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:
@@ -306,14 +306,11 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
|
||||
DenseSet<const MDNode *> VisitedSet;
|
||||
|
||||
for (DICompileUnit DIC : F.compile_units()) {
|
||||
assert(DIC.Verify() && "DIC must verify as a DICompileUnit.");
|
||||
|
||||
// Create our live subprogram list.
|
||||
DIArray SPs = DIC.getSubprograms();
|
||||
bool SubprogramChange = false;
|
||||
for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
|
||||
DISubprogram DISP(SPs.getElement(i));
|
||||
assert(DISP.Verify() && "DISP must verify as a DISubprogram.");
|
||||
|
||||
// Make sure we visit each subprogram only once.
|
||||
if (!VisitedSet.insert(DISP).second)
|
||||
@@ -331,7 +328,6 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
|
||||
bool GlobalVariableChange = false;
|
||||
for (unsigned i = 0, e = GVs.getNumElements(); i != e; ++i) {
|
||||
DIGlobalVariable DIG(GVs.getElement(i));
|
||||
assert(DIG.Verify() && "DIG must verify as DIGlobalVariable.");
|
||||
|
||||
// Make sure we only visit each global variable only once.
|
||||
if (!VisitedSet.insert(DIG).second)
|
||||
|
Reference in New Issue
Block a user