mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
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
This commit is contained in:
parent
b7b9bf458b
commit
cccac6162d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user