summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-09-10 18:52:29 +0000
committerAdrian Prantl <aprantl@apple.com>2014-09-10 18:52:29 +0000
commit1383d6f80848d0c5ce3139ba0a95b6807f10bd0f (patch)
tree99cb76df1f7cd517becfbd770fb4426ce8f5a128 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent5a699f74e1c8164605ac1f675e1bb71eecc7ecbe (diff)
downloadbcm5719-llvm-1383d6f80848d0c5ce3139ba0a95b6807f10bd0f.tar.gz
bcm5719-llvm-1383d6f80848d0c5ce3139ba0a95b6807f10bd0f.zip
Cleanup: Use the appropriate API for accessing the DIVariable of a
DBG_VALUE intrinsic. llvm-svn: 217533
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4319a577117..b1fc46b4112 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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())
OpenPOWER on IntegriCloud