diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-04-10 17:50:30 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-04-10 17:50:30 +0000 |
commit | cccac6162d2b4fff3caaf0cf7e361a0a5d807f59 (patch) | |
tree | 9a4d484d1ef453d6c9dda244a24ae8aa035e6692 | |
parent | b7b9bf458b2230a977ad5572b8435bb4a2d0cb13 (diff) | |
download | llvm-cccac6162d2b4fff3caaf0cf7e361a0a5d807f59.tar.gz llvm-cccac6162d2b4fff3caaf0cf7e361a0a5d807f59.tar.bz2 llvm-cccac6162d2b4fff3caaf0cf7e361a0a5d807f59.tar.xz |
Follow-up to r205973: change the return type to const MDNode*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205974 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 9e815623a7..cb85ca8978 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -246,10 +246,9 @@ public: /// getDebugVariable() - Return the debug variable referenced by /// this DBG_VALUE instruction. - DIVariable getDebugVariable() const { + const MDNode *getDebugVariable() const { assert(isDebugValue() && "not a DBG_VALUE"); - const MDNode *Var = getOperand(getNumOperands() - 1).getMetadata(); - return DIVariable(Var); + return getOperand(getNumOperands() - 1).getMetadata(); } /// emitError - Emit an error referring to the source location of this |