1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Cleanup: Use the appropriate API for accessing the DIVariable of a

DBG_VALUE intrinsic.

llvm-svn: 217533
This commit is contained in:
Adrian Prantl 2014-09-10 18:52:29 +00:00
parent 292a69bd57
commit 47d8607b25

View File

@ -622,7 +622,7 @@ static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
raw_svector_ostream OS(Str);
OS << "DEBUG_VALUE: ";
DIVariable V(MI->getOperand(2).getMetadata());
DIVariable V = MI->getDebugVariable();
if (V.getContext().isSubprogram()) {
StringRef Name = DISubprogram(V.getContext()).getDisplayName();
if (!Name.empty())