diff options
author | Devang Patel <dpatel@apple.com> | 2010-05-04 01:05:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-05-04 01:05:02 +0000 |
commit | 01c5ff6437ee2e92cae4d25f351c93194e531181 (patch) | |
tree | 62c3330e06e31806d8fa98cd2a68748b6030a60a /lib/Analysis/DebugInfo.cpp | |
parent | f1ced259b5617e9c15fcafd47e090c22e2702062 (diff) | |
download | external_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.zip external_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.tar.gz external_llvm-01c5ff6437ee2e92cae4d25f351c93194e531181.tar.bz2 |
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
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 8d5a3c7..141b181 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -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()) |