Do not ignore debug loc attached with llvm.dbg.declare while collecting debug info used by a module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102995 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2010-05-04 01:05:02 +00:00
parent f1ced259b5
commit 01c5ff6437
2 changed files with 87 additions and 3 deletions

View File

@ -1171,10 +1171,8 @@ void DebugInfoFinder::processModule(Module &M) {
for (Function::iterator FI = (*I).begin(), FE = (*I).end(); FI != FE; ++FI)
for (BasicBlock::iterator BI = (*FI).begin(), BE = (*FI).end(); BI != BE;
++BI) {
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI)) {
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI))
processDeclare(DDI);
continue;
}
DebugLoc Loc = BI->getDebugLoc();
if (Loc.isUnknown())