raw_svector_ostream OS(Str);
OS << "DEBUG_VALUE: ";
- DIVariable V = MI->getDebugVariable();
+ const MDLocalVariable *V = MI->getDebugVariable();
if (auto *SP = dyn_cast<MDSubprogram>(V->getScope())) {
StringRef Name = SP->getDisplayName();
if (!Name.empty())
}
OS << V->getName();
- DIExpression Expr = MI->getDebugExpression();
+ const MDExpression *Expr = MI->getDebugExpression();
if (Expr->isBitPiece())
OS << " [bit_piece offset=" << Expr->getBitPieceOffset()
<< " size=" << Expr->getBitPieceSize() << "]";