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:
parent
292a69bd57
commit
47d8607b25
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user