diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-14 17:13:09 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-14 17:13:09 +0000 |
commit | 24026502d5df709997d447a7babdc6b2983a4090 (patch) | |
tree | 6bafde269ee2ef958d60a425b9a34638cce1ef2a /llvm/lib/IR/DebugInfo.cpp | |
parent | e75f963c611b15e2da123143a7e0007ef7adb940 (diff) | |
download | bcm5719-llvm-24026502d5df709997d447a7babdc6b2983a4090.tar.gz bcm5719-llvm-24026502d5df709997d447a7babdc6b2983a4090.zip |
Revert "Fix stuff... again."
Accidental commit.
This reverts commit r219693.
llvm-svn: 219695
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 4a52a9312fa..b5c27933f16 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -568,34 +568,6 @@ bool DISubprogram::Verify() const { if (isLValueReference() && isRValueReference()) return false; - // If a DISubprogram has an llvm::Function*, then scope chains from all - // instructions within the function should lead to this DISubprogram. - if (auto *F = getFunction()) { - LLVMContext &Ctxt = F->getContext(); - for (auto &BB : *F) { - for (auto &I : BB) { - DebugLoc DL = I.getDebugLoc(); - if (DL.isUnknown()) - continue; - - MDNode *Scope = nullptr; - MDNode *IA = nullptr; - // walk the inlined-at scopes - while (DL.getScopeAndInlinedAt(Scope, IA, F->getContext()), IA) - DL = DebugLoc::getFromDILocation(IA); - DL.getScopeAndInlinedAt(Scope, IA, Ctxt); - assert(!IA); - while (!DIDescriptor(Scope).isSubprogram()) { - DILexicalBlockFile D(Scope); - Scope = D.isLexicalBlockFile() - ? D.getScope() - : DebugLoc::getFromDILexicalBlock(Scope).getScope(Ctxt); - } - if (!DISubprogram(Scope).describes(F)) - return false; - } - } - } return DbgNode->getNumOperands() == 9 && getNumHeaderFields() == 12; } |