DebugInfo: Drop rest of DIDescriptor subclasses
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index 43d7a38e04aed79aa94fe14c015fb9267cc0a29d..ec76cd613768f5b65e976193d306375a71b303b4 100644 (file)
@@ -670,7 +670,7 @@ static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
   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())
@@ -678,7 +678,7 @@ static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
   }
   OS << V->getName();
 
-  DIExpression Expr = MI->getDebugExpression();
+  const MDExpression *Expr = MI->getDebugExpression();
   if (Expr->isBitPiece())
     OS << " [bit_piece offset=" << Expr->getBitPieceOffset()
        << " size=" << Expr->getBitPieceSize() << "]";