DebugInfo: Gut DIVariable and DIGlobalVariable
[oota-llvm.git] / lib / Target / AArch64 / AArch64AsmPrinter.cpp
index 93830e5e5917dc72048b4c4bc5daaf03c18ed827..0821cff3fc43d46b10a590a43a0aaa9e6965b00e 100644 (file)
@@ -348,8 +348,8 @@ void AArch64AsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
   assert(NOps == 4);
   OS << '\t' << MAI->getCommentString() << "DEBUG_VALUE: ";
   // cast away const; DIetc do not take const operands for some reason.
-  DIVariable V = cast<MDLocalVariable>(MI->getOperand(NOps - 2).getMetadata());
-  OS << V.getName();
+  OS << cast<MDLocalVariable>(MI->getOperand(NOps - 2).getMetadata())
+            ->getName();
   OS << " <- ";
   // Frame address.  Currently handles register +- offset only.
   assert(MI->getOperand(0).isReg() && MI->getOperand(1).isImm());