llvm.org GIT mirror llvm / c954757
Cleanup: Use the appropriate API for accessing the DIVariable of a DBG_VALUE intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217533 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
621621 raw_svector_ostream OS(Str);
622622 OS << "DEBUG_VALUE: ";
623623
624 DIVariable V(MI->getOperand(2).getMetadata());
624 DIVariable V = MI->getDebugVariable();
625625 if (V.getContext().isSubprogram()) {
626626 StringRef Name = DISubprogram(V.getContext()).getDisplayName();
627627 if (!Name.empty())