mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
AsmPrinter: Simplify logic for debug info intrinsics' !dbg attachments
These are required, so just assume they're there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -711,7 +711,10 @@ void DwarfDebug::collectVariableInfoFromMMITable(
|
||||
for (const auto &VI : MMI->getVariableDbgInfo()) {
|
||||
if (!VI.Var)
|
||||
continue;
|
||||
InlinedVariable Var(VI.Var, VI.Loc ? VI.Loc->getInlinedAt() : nullptr);
|
||||
assert(VI.Var->isValidLocationForIntrinsic(VI.Loc) &&
|
||||
"Expected inlined-at fields to agree");
|
||||
|
||||
InlinedVariable Var(VI.Var, VI.Loc->getInlinedAt());
|
||||
Processed.insert(Var);
|
||||
LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc);
|
||||
|
||||
@@ -719,8 +722,6 @@ void DwarfDebug::collectVariableInfoFromMMITable(
|
||||
if (!Scope)
|
||||
continue;
|
||||
|
||||
assert(VI.Var->isValidLocationForIntrinsic(VI.Loc) &&
|
||||
"Expected inlined-at fields to agree");
|
||||
DIExpression Expr = cast_or_null<MDExpression>(VI.Expr);
|
||||
ensureAbstractVariableIsCreatedIfScoped(Var, Scope->getScopeNode());
|
||||
auto RegVar =
|
||||
|
Reference in New Issue
Block a user