mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
DebugInfo: Delete subclasses of DIScope
Delete subclasses of (the already defunct) `DIScope`, updating users to use the raw pointers from the `Metadata` hierarchy directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -50,7 +50,7 @@ MDNode *DebugLoc::getInlinedAtScope() const {
|
||||
DebugLoc DebugLoc::getFnDebugLoc() const {
|
||||
// FIXME: Add a method on \a MDLocation that does this work.
|
||||
const MDNode *Scope = getInlinedAtScope();
|
||||
if (DISubprogram SP = getDISubprogram(Scope))
|
||||
if (auto *SP = getDISubprogram(Scope))
|
||||
return DebugLoc::get(SP->getScopeLine(), 0, SP);
|
||||
|
||||
return DebugLoc();
|
||||
|
||||
Reference in New Issue
Block a user