mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
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
This commit is contained in:
parent
50196a89d1
commit
c9547570c2
@ -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