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:
Eric Christopher
2013-08-02 00:49:44 +00:00
parent 7eef3bdd7b
commit be9f508aec
17 changed files with 50 additions and 50 deletions

View File

@ -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());
}