mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Debug Info: clean up usage of Verify.
No functionality change. It should suffice to check the type of a debug info metadata, instead of calling Verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -434,7 +434,7 @@ void GCOVProfiler::emitProfileNotes() {
|
||||
DIArray SPs = CU.getSubprograms();
|
||||
for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
|
||||
DISubprogram SP(SPs.getElement(i));
|
||||
if (!SP.Verify()) continue;
|
||||
assert(SP.isSubprogram());
|
||||
|
||||
Function *F = SP.getFunction();
|
||||
if (!F) continue;
|
||||
@ -483,7 +483,7 @@ bool GCOVProfiler::emitProfileArcs() {
|
||||
SmallVector<std::pair<GlobalVariable *, MDNode *>, 8> CountersBySP;
|
||||
for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
|
||||
DISubprogram SP(SPs.getElement(i));
|
||||
if (!SP.Verify()) continue;
|
||||
assert(SP.isSubprogram());
|
||||
Function *F = SP.getFunction();
|
||||
if (!F) continue;
|
||||
if (!Result) Result = true;
|
||||
|
Reference in New Issue
Block a user