mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Temporarily revert "Debug Info Finder|Verifier: handle DbgLoc attached to
instructions." in an attempt to bring back some bots. This reverts commit r187609. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -908,12 +908,26 @@ void DebugInfoFinder::processModule(const Module &M) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (NamedMDNode *SP_Nodes = M.getNamedMetadata("llvm.dbg.sp")) {
|
||||
for (unsigned i = 0, e = SP_Nodes->getNumOperands(); i != e; ++i)
|
||||
processSubprogram(DISubprogram(SP_Nodes->getOperand(i)));
|
||||
}
|
||||
}
|
||||
|
||||
/// processLocation - Process DILocation.
|
||||
void DebugInfoFinder::processLocation(DILocation Loc) {
|
||||
if (!Loc) return;
|
||||
processScope(Loc.getScope());
|
||||
if (!Loc.Verify()) return;
|
||||
DIDescriptor S(Loc.getScope());
|
||||
if (S.isCompileUnit())
|
||||
addCompileUnit(DICompileUnit(S));
|
||||
else if (S.isSubprogram())
|
||||
processSubprogram(DISubprogram(S));
|
||||
else if (S.isLexicalBlock())
|
||||
processLexicalBlock(DILexicalBlock(S));
|
||||
else if (S.isLexicalBlockFile()) {
|
||||
DILexicalBlockFile DBF = DILexicalBlockFile(S);
|
||||
processLexicalBlock(DILexicalBlock(DBF.getScope()));
|
||||
}
|
||||
processLocation(Loc.getOrigLocation());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user