DebugInfo: Implement MDLocation::getInlinedAtScope()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 17:41:24 +0000 (17:41 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 30 Mar 2015 17:41:24 +0000 (17:41 +0000)
commit3584797a17873c2692425db0bec64a9252879fc3
treedb0c4e126ba6eb7cd57a7da26c80d330cb1504cc
parent7380257f0eb244bb051f8b6204a88f12ab71b850
DebugInfo: Implement MDLocation::getInlinedAtScope()

Write `MDLocation::getInlinedAtScope()` and use it to re-implement
`DebugLoc::getScopeNode()` (and simplify `DISubprogram::Verify()`).
This follows the inlined-at linked list and returns the scope of the
deepest/last location.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233568 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfo.cpp
lib/IR/DebugLoc.cpp